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

Command monitoring and OP_MSG document sequences

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.9.0
    • Component/s: libmongoc
    • Labels:
      None

      Description

      MongoDB 2.6 write commands have arrays called "documents", "updates", and "deletes" which contain the array of operations. These are absent from the command body with OP_MSG, and they're added as document sequences instead.

      Introduce a new function mongoc_apm_command_started_get_document_sequences which returns these documents no matter what format of write command was sent to the server. The return value will be NULL if the command is not insert, update, or delete. Converse for command-succeeded events.

      In libmongoc 1.9, when we send an OP_MSG with a document sequence to the server, simulate a command body that includes the document sequence as a BSON array in order to preserve the same API as OP_QUERY write commands.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jesse A. Jesse Jiryu Davis
              Reporter:
              jesse A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: