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

First read in transaction uses client/db/collection readConcern, not mongoc_txn_opt_t readConcern

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

      Transactions Spec:

      Drivers MUST override all other collection, database, or client readConcerns with the transaction’s readConcern. Drivers MUST add this readConcern to the first command in a transaction if and only if the readConcern is supplied and not the default.

      However, if you set a readConcern on a collection and do an aggregate or count as the first operation of a transaction, the driver sends the collection's readConcern, not the transaction's readConcern. Instead, the readConcern that was configured with mongoc_session_opts_set_default_transaction_opts or mongoc_client_session_start_transaction, or no readConcern, should be used.

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

              Created:
              Updated:
              Resolved: