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

_mongoc_read_concern_freeze() assert failure if level is not set

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      _mongoc_read_concern_freeze() assumes that the level is always set:

      BSON_ASSERT (read_concern->level);
      BSON_APPEND_UTF8 (compiled, "level", read_concern->level);
      

      This makes it impossible to obtain the BSON for a default read concern (i.e. level is NULL), as is possible with _mongoc_write_concern_freeze().

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: