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

mongoc_write_concern_append

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.4.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • Labels:
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: