diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-07-22 14:08:58 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-07-23 15:43:00 -0400 |
commit | 3778e48286d35a59cc0cb52bdadcf4090ac8af94 (patch) | |
tree | cf455541608035251b7f6dafbedc8f2371d5ef7d /src/mongo/db/repl/sync_source_feedback.h | |
parent | 6cd0e5006cd979a4e91ac8d4d2adb3af6b4ce877 (diff) | |
download | mongo-3778e48286d35a59cc0cb52bdadcf4090ac8af94.tar.gz |
SERVER-14442 Make ReplicationCoordinator responsible for constructing replication handshake objects
Diffstat (limited to 'src/mongo/db/repl/sync_source_feedback.h')
-rw-r--r-- | src/mongo/db/repl/sync_source_feedback.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/db/repl/sync_source_feedback.h b/src/mongo/db/repl/sync_source_feedback.h index c8cad777667..64c4d931b6b 100644 --- a/src/mongo/db/repl/sync_source_feedback.h +++ b/src/mongo/db/repl/sync_source_feedback.h @@ -52,9 +52,6 @@ namespace repl { ~SyncSourceFeedback() {} - /// Adds an entry to _members for a secondary that has connected to us. - void associateMember(const OID& rid, Member* member); - /// Ensures local.me is populated and populates it if not. /// TODO(spencer): Remove this function once the LegacyReplicationCoordinator is gone. void ensureMe(OperationContext* txn); @@ -115,11 +112,8 @@ namespace repl { const Member* _syncTarget; // our connection to our sync target boost::scoped_ptr<DBClientConnection> _connection; - // protects cond and maps and the indicator bools + // protects cond and the indicator bools boost::mutex _mtx; - typedef std::map<mongo::OID, Member*> OIDMemberMap; - // contains a pointer to each member, which we can look up by oid - OIDMemberMap _members; // used to alert our thread of changes which need to be passed up the chain boost::condition _cond; // used to indicate a position change which has not yet been pushed along |