diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2017-03-27 21:55:05 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2017-04-19 18:11:10 -0400 |
commit | 7109d453e5a264ba77093b9b068d1eaa056ec837 (patch) | |
tree | f3a6274b705f5c664e6f3250c4c122f3e5be6c97 /src/mongo/db/repl/replication_coordinator_impl.h | |
parent | d0c851e2f4bfea514e22c97af1838640d2849a8c (diff) | |
download | mongo-7109d453e5a264ba77093b9b068d1eaa056ec837.tar.gz |
SERVER-26848 Remove dead code of primary catch-up.
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.h b/src/mongo/db/repl/replication_coordinator_impl.h index 404bf0e16b9..dd63317fd62 100644 --- a/src/mongo/db/repl/replication_coordinator_impl.h +++ b/src/mongo/db/repl/replication_coordinator_impl.h @@ -74,7 +74,6 @@ namespace repl { class ElectCmdRunner; class FreshnessChecker; -class FreshnessScanner; class HandshakeArgs; class HeartbeatResponseAction; class LastVote; @@ -1220,31 +1219,12 @@ private: EventHandle _makeEvent(); /** - * Schedule notification of election win. - */ - void _scheduleElectionWinNotification_inlock(); - - /** * Wrap a function into executor callback. * If the callback is cancelled, the given function won't run. */ executor::TaskExecutor::CallbackFn _wrapAsCallbackFn(const stdx::function<void()>& work); /** - * Scan all nodes to find out the the latest optime in the replset, thus we know when there's no - * more to catch up before the timeout. It also schedules the actual catch-up once we get the - * response from the freshness scan. - */ - void _scanOpTimeForCatchUp_inlock(); - /** - * Wait for data replication until we reach the latest optime, or the timeout expires. - * "originalTerm" is the term when catch-up work is scheduled and used to detect - * the step-down (and potential following step-up) after catch-up gets scheduled. - */ - void _catchUpOplogToLatest_inlock(const FreshnessScanner& scanner, - Milliseconds timeout, - long long originalTerm); - /** * Finish catch-up mode and start drain mode. */ void _enterDrainMode_inlock(); |