Skip to content

Commit

Permalink
Merge pull request go-mgo#238 from aleist/v2-unstable
Browse files Browse the repository at this point in the history
Fixed error iteration in writeOp.
  • Loading branch information
niemeyer committed Jun 8, 2016
2 parents 655a07e + 277c0a0 commit f79b50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -4557,7 +4557,7 @@ func (c *Collection) writeOp(op interface{}, ordered bool) (lerr *LastError, err
lerr.N += oplerr.N
lerr.modified += oplerr.modified
if err != nil {
for ei := range lerr.ecases {
for ei := range oplerr.ecases {
oplerr.ecases[ei].Index += i
}
lerr.ecases = append(lerr.ecases, oplerr.ecases...)
Expand Down

0 comments on commit f79b50d

Please sign in to comment.