Add protection to _implicitDefaultWriteConcernMajority

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • ALL
    • v6.1, v6.0, v5.0
    • Repl 2022-12-26
    • 11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It is possible for a race on _implicitDefaultWriteConcernMajority to occur between the replication coordinator, which is setting the read / write concern settings on start up etc. and the GetDefaultRWConcernCommand command.

      We should prevent this race by protecting that variable with a mutex. See my comment for more info.

              Assignee:
              Lingzhi Deng
              Reporter:
              Vishnu Kaushik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: