[SERVER-22683] enableMajorityReadConcern option cannot be disabled if specified Created: 17/Feb/16  Updated: 25/Jan/17  Resolved: 18/Feb/16

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.2.4, 3.3.2

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Repl 10 (02/19/16)
Participants:

 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.



 Comments   
Comment by Githook User [ 18/Feb/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-22683 support replication.enableMajorityReadConcern=false in configuration file

(cherry picked from commit 739f84e691a8659ffef80c6de9124602d32a2d3a)
Branch: v3.2
https://github.com/mongodb/mongo/commit/37e5edc5ff6f43d582e5eae0570ccbef20ba04a4

Comment by Githook User [ 18/Feb/16 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-22683 support replication.enableMajorityReadConcern=false in configuration file
Branch: master
https://github.com/mongodb/mongo/commit/739f84e691a8659ffef80c6de9124602d32a2d3a

Generated at Thu Feb 08 04:01:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.