shell reporting of w:0 write results is ugly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.6.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 })
      

            Assignee:
            Siyuan Zhou
            Reporter:
            Greg Studer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: