[SERVER-898] passthough commands shouldn't duplicate ok and errmsg fields Created: 27/Jan/10  Updated: 12/Jul/16  Resolved: 28/Jan/10

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 1.3.5

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

> db.t.group({})
Wed Jan 27 21:11:30 JS Error: uncaught exception: group command failed: {
"errmsg" : "$reduce has to be set",
"ok" : 0,
"ok" : 0,
"errmsg" : "$reduce has to be set"
}

> db.t.stats()
{
"sharded" : false,
"ns" : "test.t",
"count" : 4,
"size" : 144,
"storageSize" : 1024,
"nindexes" : 1,
"ok" : 1,
"ok" : 1
}



 Comments   
Comment by auto [ 28/Jan/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: Don't double-add ok and errmsg to cmd output SHARDING-76
http://github.com/mongodb/mongo/commit/cf09ddc3d6d1dcf11a6a2a3818ac71901516401b

Generated at Thu Feb 08 02:55:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.