Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
ALL
Description
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
|
Attachments
Issue Links
- is related to
-
SERVER-9038 New write operation method for insert, update, remove
-
- Closed
-