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

mongoc_write_concern_append

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.4.0
    • None
    • libmongoc
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: