-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
None
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
> 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.