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

bson_reader_reset()

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: libbson
    • None

      According to the APM spec, server replies to OP_QUERY and OP_GETMORE must be converted into simulated replies to the "find" and "getMore" commands before reporting to the APM listener.

      This requires reading the server reply twice: once to convert it to a find / getMore reply, once again while iterating the cursor normally with mongoc_cursor_next.

      Add a public libbson function bson_reader_reset() to the cursor can re-read the server reply without a malloc.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: