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

bson_reader_reset()

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 1.4.0
    • libbson
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: