diff options
Diffstat (limited to 'db/repl_block.cpp')
-rw-r--r-- | db/repl_block.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/repl_block.cpp b/db/repl_block.cpp index dcac121..840bbb2 100644 --- a/db/repl_block.cpp +++ b/db/repl_block.cpp @@ -175,7 +175,7 @@ namespace mongo { if (wStr == "majority") { // use the entire set, including arbiters, to prevent writing // to a majority of the set but not a majority of voters - return replicatedToNum(op, theReplSet->config().members.size()/2+1); + return replicatedToNum(op, theReplSet->config().getMajority()); } map<string,ReplSetConfig::TagRule*>::const_iterator it = theReplSet->config().rules.find(wStr); |