summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/bgsync.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-07-20 10:24:24 -0400
committerJudah Schvimer <judah@mongodb.com>2017-07-20 10:24:24 -0400
commitc73bfbc62df675c6e2553886ad98251cb37e7e06 (patch)
tree1f410f8521f9d09ec9862a8244936a71944a8d68 /src/mongo/db/repl/bgsync.h
parent5a2533ebc3606973fbe237228b9bacdcb21a532b (diff)
downloadmongo-c73bfbc62df675c6e2553886ad98251cb37e7e06.tar.gz
SERVER-29890 check supportsRecoverToStableTimestamp() when deciding to use rollback to checkpoint algorithm
Diffstat (limited to 'src/mongo/db/repl/bgsync.h')
-rw-r--r--src/mongo/db/repl/bgsync.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/bgsync.h b/src/mongo/db/repl/bgsync.h
index ba8bec7eeac..cd6016910dd 100644
--- a/src/mongo/db/repl/bgsync.h
+++ b/src/mongo/db/repl/bgsync.h
@@ -175,6 +175,15 @@ private:
StorageInterface* storageInterface);
/**
+ * Executes a rollback with the recover to checkpoint algorithm. This is the default rollback
+ * algorithm.
+ */
+ void _runRollbackViaRecoverToCheckpoint(const HostAndPort& source,
+ int requiredRBID,
+ OplogInterface* localOplog,
+ StorageInterface* storageInterface);
+
+ /**
* Executes a rollback via refetch in either rs_rollback.cpp or rs_rollback_no_uuid.cpp
*
* We fall back on the rollback via refetch algorithm when: