From c73bfbc62df675c6e2553886ad98251cb37e7e06 Mon Sep 17 00:00:00 2001 From: Judah Schvimer Date: Thu, 20 Jul 2017 10:24:24 -0400 Subject: SERVER-29890 check supportsRecoverToStableTimestamp() when deciding to use rollback to checkpoint algorithm --- src/mongo/db/repl/bgsync.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mongo/db/repl/bgsync.h') 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 @@ -174,6 +174,15 @@ private: int requiredRBID, 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 * -- cgit v1.2.1