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

mongoc_write_concern_append

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: libmongoc
    • Labels:
    • Backwards Compatibility:
      Fully Compatible

      Description

      Since we are not providing a generic command function that takes a write concern parameter (that is, there is no mongoc_client_command_with_write_concern), users must choose to manually append a "writeConcern" subdocument to the command document before calling a generic function like mongoc_client_command.

      Let's help them:

      bool 
      mongoc_write_concern_append (mongoc_write_concern_t *write_concern,
                                   bson_t                 *doc);
      

      The passed-in write_concern is conceptually const, but not actually const so that we can call _mongoc_write_concern_freeze on it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fiona.rowan Fiona Rowan
              Reporter:
              jesse A. Jesse Jiryu Davis
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: