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

enableMajorityReadConcern option cannot be disabled if specified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.4, 3.3.2
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Repl 10 (02/19/16)

      Description

          if (params.count("replication.enableMajorityReadConcern")) {
              replSettings.setMajorityReadConcernEnabled(true);
          }
      

      This code should be using the value of the parameter to call setMajorityReadConcernEnabled, not a hardcoded "true".
      Right now, if you specify {replication

      {enableMajorityReadConcern:false}

      } in a config file, it actually turns the option on.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: