Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
-
ALL
Description
> db.user.insert({ x: 1 })
|
WriteResult({ "nInserted" : 1 })
|
> db.user.update({ x: 1 }, { $inc: { x: 1 }})
|
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 0 })
|
> db.runCommand({ getLastError: 1 })
|
{
|
"connectionId" : 2,
|
"n" : 0,
|
"syncMillis" : 0,
|
"writtenTo" : null,
|
"err" : null,
|
"ok" : 1
|
}
|
Reason is because bulk api calls resetError after executing the bulk ops.