Add function to calculate write concern default formula

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Minor Change
    • Repl 2021-04-19, Repl 2021-05-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      implicitDefaultWriteConcern = if ((#arbiters > 0) AND (#arbiters >= ½(#voting nodes) - 1)) then {w:1} else {w:majority}.

      We should keep track of the implicit default write concern in ReadWriteConcernDefaults. _getDefault cannot return the implicit default write concern yet however (that will happen in SERVER-55703), since that has implications for sharded clusters that we have to resolve first.

            Assignee:
            Moustafa Maher
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: