getlasterror: 1 passed to 2.6+ mongod as writeConcern

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • 1.0.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Brock (Inactive)
            Reporter:
            Hannes Magnusson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: