summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/consensus.cpp
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2014-05-30 12:06:26 -0400
committermatt dannenberg <matt.dannenberg@10gen.com>2014-06-02 04:13:24 -0400
commit174c677aec7671b4d7b7dfeda1f769b9a14cc7e1 (patch)
treeb583c454997ee365ec8669c9709ebe9ff99f6405 /src/mongo/db/repl/consensus.cpp
parentf33e210cab1bde3deb5c62102e292fdf30a436ca (diff)
downloadmongo-174c677aec7671b4d7b7dfeda1f769b9a14cc7e1.tar.gz
SERVER-13610 update even number of votes warning due to non-numeric votes
Diffstat (limited to 'src/mongo/db/repl/consensus.cpp')
-rw-r--r--src/mongo/db/repl/consensus.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/consensus.cpp b/src/mongo/db/repl/consensus.cpp
index 4339e0eb794..0de87d0596a 100644
--- a/src/mongo/db/repl/consensus.cpp
+++ b/src/mongo/db/repl/consensus.cpp
@@ -223,7 +223,8 @@ namespace repl {
for( Member *m = rs.head(); m; m=m->next() )
vTot += m->config().votes;
if( vTot % 2 == 0 && vTot && complain++ == 0 )
- log() << "replSet " /*buildbot! warning */ "total number of votes is even - add arbiter or give one member an extra vote" << rsLog;
+ log() << "replSet warning: even number of voting members in replica set config - "
+ "add an arbiter or set votes to 0 on one of the extisting members" << rsLog;
return vTot;
}