Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-41444

Improve WriteConcernOptions to differentiate uninitialized from 'usedDefault'

    XMLWordPrintableJSON

Details

    • Query Optimization

    Description

      In SERVER-23923 we discovered that the WriteConcernOptions attached to the OperationContext only report to have 'usedDefault' if the operation called 'extractWriteConcern'. This is not done for some requests which don't need to write, for example an OP_QUERY request. To aid users of WriteConcernOptions in understanding these subtleties, we proposed adding more states for WriteConcernOptions to be in. Something like 'kUninitialized', 'kUsedDefault', 'kExplicitlySet'.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: