diff options
author | Benety Goh <benety@mongodb.com> | 2016-10-28 14:41:28 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-11-01 13:10:42 -0400 |
commit | c48d084454d5e192b651f7179fccab21a1e69f90 (patch) | |
tree | bc8c38f395b9dfdb90fd28fac15ea82050f259ae /src/mongo/db/repl/bgsync.h | |
parent | 96f015892c82929e85f565cfc59cdda1e9d420e0 (diff) | |
download | mongo-c48d084454d5e192b651f7179fccab21a1e69f90.tar.gz |
SERVER-23070 migrated bgsync to use SyncSourceResolver instead of ReplicationCoordinatorImpl::selectSyncSource
Diffstat (limited to 'src/mongo/db/repl/bgsync.h')
-rw-r--r-- | src/mongo/db/repl/bgsync.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/repl/bgsync.h b/src/mongo/db/repl/bgsync.h index afb6733c0b2..312acb15bc7 100644 --- a/src/mongo/db/repl/bgsync.h +++ b/src/mongo/db/repl/bgsync.h @@ -37,6 +37,7 @@ #include "mongo/db/repl/oplog_buffer.h" #include "mongo/db/repl/oplog_fetcher.h" #include "mongo/db/repl/optime.h" +#include "mongo/db/repl/sync_source_resolver.h" #include "mongo/stdx/condition_variable.h" #include "mongo/stdx/functional.h" #include "mongo/stdx/mutex.h" @@ -193,6 +194,10 @@ private: HostAndPort _syncSourceHost; + // Current sync source resolver validating sync source candidates. + // Owned by us. + std::unique_ptr<SyncSourceResolver> _syncSourceResolver; + // Current oplog fetcher tailing the oplog on the sync source. // Owned by us. std::unique_ptr<OplogFetcher> _oplogFetcher; |