-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code, Write Ops
-
None
-
ALL
The new batch write ops do not return the same ok type as normal commands.
> db.t.runCommand("update", {updates:[{q:{}, u:{$inc:{v:1}}}], writeConcern:{}, continueOnError:false}) { "ok" : true, "n" : NumberLong(0), "upserted" : NumberLong(0) } > db.getLastErrorObj() { ... "err" : null, "ok" : 1 } > db.runCommand("dbStats").ok 1 > db.runCommand("collStats") { "ok" : 0, "errmsg" : "ns not found" } > db.t.runCommand("update", {updates:[{q:{}, u:{$inc:{v:1}}}]}).ok false
- is related to
-
SERVER-9038 New write operation method for insert, update, remove
- Closed