[SERVER-12668] shell reporting of w:0 write results is ugly Created: 10/Feb/14  Updated: 11/Jul/16  Resolved: 19/Feb/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-12576 Human readable Bulk state and SingleW... Closed
Operating System: ALL
Participants:

 Description   

The write concern w:0 has special meaning for write commands - suppress all output, since the client doesn't care. This currently interacts badly with wrapping the returned response in the shell, for example:

Bulk results probably have the same issues.

> db.coll.setWriteConcern({ w : 0 })
> db.coll.insert({ _id : 0, hello : "world" })
WriteResult({ "nInserted" : NaN })



 Comments   
Comment by Githook User [ 19/Feb/14 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-12668 shell reporting of w:0 write results is ugly

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/25c2e4bcb4d25fddf0eb2b214ff9229f26456b89

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