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

Allow access to getLastError document

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

      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 Unassigned
            Reporter:
            maganap Maga Napanga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: