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

Unsafe to call mongoc_read_concern_append / mongoc_write_concern_append on the same struct from multiple threads

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • libmongoc
    • None

    Description

      Conversation with jmikola revealed that mongoc_read_concern_append and mongoc_write_concern_append may be unsafe to call on the same struct concurrently from multiple threads as the "freeze" functions that get called for these types do not use locks.

      Note this is not a problem for Swift as we don't call these methods at all, and manually encode our read concern / write concern types to bson_ts instead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: