[SERVER-11052] New (batch) write ops return ok:<bool> Created: 06/Oct/13  Updated: 11/Jul/16  Resolved: 31/Oct/13

Status: Closed
Project: Core Server
Component/s: Internal Code, Write Ops
Affects Version/s: None
Fix Version/s: 2.5.4

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Alberto Lerner
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-9038 New write operation method for insert... Closed
Operating System: ALL
Participants:

 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



 Comments   
Comment by Alberto Lerner [ 31/Oct/13 ]

Author:

{u'username': u'alerner', u'name': u'Alberto Lerner', u'email': u'alerner@10gen.com'}

Message: SERVER-10521 SERVER-11052 Implement v0.5 version of write commands protocol
Branch: master
https://github.com/mongodb/mongo/commit/41633fff781a94fdac26895a55b5741a035d9c81

Generated at Thu Feb 08 03:24:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.