Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-407

getlasterror: 1 passed to 2.6+ mongod as writeConcern

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.0.2
    • Affects Version/s: None
    • Component/s: None
    • None

      The "new Write API" takes a writeConcern document similar to the old GLE command.

      This document does however not include the key->value pair "getlasterror: 1".

      This is however sent as a writeConcern to 2.6+ servers:

      {
          "insert": "collectionname",
          "writeConcern": {
              "getlasterror": 1
          },
          "ordered": true,
          "documents": [
              {
                  "_id": {
                      "$oid": "53ed19cd0640fd674b00e841"
                  },
                  "my": "value"
              }
          ]
      }
      

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: