diff options
Diffstat (limited to 'src/mongo/db/repl/initial_sync.h')
-rw-r--r-- | src/mongo/db/repl/initial_sync.h | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/src/mongo/db/repl/initial_sync.h b/src/mongo/db/repl/initial_sync.h index 41c1310656c..9fd435341c1 100644 --- a/src/mongo/db/repl/initial_sync.h +++ b/src/mongo/db/repl/initial_sync.h @@ -33,28 +33,30 @@ namespace mongo { namespace repl { - class BackgroundSyncInterface; +class BackgroundSyncInterface; + +/** + * Initial clone and sync + */ +class InitialSync : public SyncTail { +public: + virtual ~InitialSync(); + InitialSync(BackgroundSyncInterface* q); /** - * Initial clone and sync + * applies up to endOpTime, fetching missing documents as needed. */ - class InitialSync : public SyncTail { - public: - virtual ~InitialSync(); - InitialSync(BackgroundSyncInterface *q); - - /** - * applies up to endOpTime, fetching missing documents as needed. - */ - void oplogApplication(OperationContext* txn, const OpTime& endOpTime); - - // Initial sync will ignore all journal requirement flags and doesn't wait until - // operations are durable before updating the last OpTime. - virtual bool supportsWaitingUntilDurable() { return false; } - }; - - // Used for ReplSetTest testing. - extern unsigned replSetForceInitialSyncFailure; - -} // namespace repl -} // namespace mongo + void oplogApplication(OperationContext* txn, const OpTime& endOpTime); + + // Initial sync will ignore all journal requirement flags and doesn't wait until + // operations are durable before updating the last OpTime. + virtual bool supportsWaitingUntilDurable() { + return false; + } +}; + +// Used for ReplSetTest testing. +extern unsigned replSetForceInitialSyncFailure; + +} // namespace repl +} // namespace mongo |