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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication
    • Major Change
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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}});
      

              Assignee:
              [DO NOT USE] Backlog - Replication Team
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: