summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2014-06-09 13:08:24 -0400
committerEric Milkie <milkie@10gen.com>2014-06-09 13:08:33 -0400
commitdb085c742b1b97dc70a301c1d575ffd852d3ae1e (patch)
treec428692090810a14392b1d030d2872a458162f33 /src/mongo/db/repl
parentcd57c77fd4cf42173a5c9209032ef72504f4ecfa (diff)
downloadmongo-db085c742b1b97dc70a301c1d575ffd852d3ae1e.tar.gz
SERVER-14033 second half of rebase merge from 36d1beca1267a47cf4e9d79742caec8e5ad608fa
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r--src/mongo/db/repl/topology_coordinator_impl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/repl/topology_coordinator_impl.h b/src/mongo/db/repl/topology_coordinator_impl.h
index 94861a2d999..2cf27321c98 100644
--- a/src/mongo/db/repl/topology_coordinator_impl.h
+++ b/src/mongo/db/repl/topology_coordinator_impl.h
@@ -81,6 +81,14 @@ namespace repl {
*/
bool chainingAllowed;
+ // Number of nodes needed for w:majority writes
+ int majorityNumber;
+
+ BSONObj asBson() const;
+
+ // Calculate majority number based on current config and store in majorityNumber;
+ // done as part of reconfig.
+ void calculateMajorityNumber();
};
TopologyCoordinatorImpl();