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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: libmongoc
    • Labels:
      None

      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.

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

              Created:
              Updated: