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

Add write concern option to not wait for snapshot on majority writes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Major Change

      Description

      Once ReadConcernMajority support is enabled snapshots are created periodically. But when WriteConcern.Majority is used, it must wait for a snapshot so that ReadConcern.Majority can then read that write.

      There are cases when one might want to do majority writes but not wait for a snapshot – there is no need to read your own writes using ReadConcern.Majority basically.

      // example
      coll.insert({}, {writeConcern:{w:"majority", waitForSnapshot:false}});
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: