Allow access to getLastError document

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 0.90.0
    • Component/s: None
    • Environment:
      Any
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There is no way to access the getLastError document, since it's being received, evaluated and then discarded right after _mongoc_write_concern_has_gle().

      So, clients can't access the rest of the fields to evaluate for example, how many documents were affected by the previous update/delete operation, or whether an upsert resulted in an update or an insert, besides other useful fields I've seen there.

            Assignee:
            Unassigned
            Reporter:
            Maga Napanga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: