Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12668

shell reporting of w:0 write results is ugly

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

      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@mongodb.com Siyuan Zhou
            Reporter:
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: