diff options
Diffstat (limited to 'src/mongo/db/repl/repl_coordinator_legacy.h')
-rw-r--r-- | src/mongo/db/repl/repl_coordinator_legacy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/repl_coordinator_legacy.h b/src/mongo/db/repl/repl_coordinator_legacy.h index ec5b3025f42..00e42de5145 100644 --- a/src/mongo/db/repl/repl_coordinator_legacy.h +++ b/src/mongo/db/repl/repl_coordinator_legacy.h @@ -34,6 +34,8 @@ namespace mongo { namespace repl { + class Member; + /** * An implementation of ReplicationCoordinator that simply delegates to existing code. */ @@ -96,6 +98,9 @@ namespace repl { virtual void prepareReplSetUpdatePositionCommand(BSONObjBuilder* cmdBuilder); + virtual void prepareReplSetUpdatePositionCommandHandshakes( + std::vector<BSONObj>* handshakes); + virtual void processReplSetGetStatus(BSONObjBuilder* result); virtual bool setMaintenanceMode(OperationContext* txn, bool activate); @@ -160,6 +165,10 @@ namespace repl { // Map from RID to member config object std::map<OID, BSONObj> _ridConfigMap; + // Map from RID to Member pointer for replica set nodes + typedef std::map<OID, Member*> OIDMemberMap; + OIDMemberMap _ridMemberMap; + // Maps nodes in this replication group to the last oplog operation they have committed // TODO(spencer): change to unordered_map typedef std::map<OID, OpTime> SlaveOpTimeMap; |