summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_rollback.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-03-02 15:09:47 -0500
committerBenety Goh <benety@mongodb.com>2017-03-08 14:14:40 -0500
commit6d40cc3281fcd71d59db3c29c7a0b21ba0eecdc6 (patch)
tree37c32c6450aec8fe66d2e4677b9e730307fbcf9a /src/mongo/db/repl/rs_rollback.h
parentca672940f81c3ea82a935aaa87def6101ff5ac62 (diff)
downloadmongo-6d40cc3281fcd71d59db3c29c7a0b21ba0eecdc6.tar.gz
SERVER-27329 cleaned up BackgroundSync::_rollback() argument.
Moved dependencies on concrete classes and StorageInterace::get() out of _rollback() into BackgroundSync::_produce(). This commit also removes the dependency on StorageInterface::get() from syncRollback().
Diffstat (limited to 'src/mongo/db/repl/rs_rollback.h')
-rw-r--r--src/mongo/db/repl/rs_rollback.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rs_rollback.h b/src/mongo/db/repl/rs_rollback.h
index 58dd4a27d4f..c5589003ec4 100644
--- a/src/mongo/db/repl/rs_rollback.h
+++ b/src/mongo/db/repl/rs_rollback.h
@@ -44,6 +44,7 @@ namespace repl {
class OplogInterface;
class ReplicationCoordinator;
class RollbackSource;
+class StorageInterface;
/**
* Initiates the rollback process.
@@ -65,6 +66,7 @@ class RollbackSource;
* provides oplog; and
* supports fetching documents and copying collections.
* @param replCoord Used to track the rollback ID and to change the follower state
+ * @param storageInterface Used to update minValid.
*
* If requiredRBID is supplied, we error if the upstream node has a different RBID (ie it rolled
* back) after fetching any information from it.
@@ -77,7 +79,8 @@ Status syncRollback(OperationContext* opCtx,
const OplogInterface& localOplog,
const RollbackSource& rollbackSource,
boost::optional<int> requiredRBID,
- ReplicationCoordinator* replCoord);
+ ReplicationCoordinator* replCoord,
+ StorageInterface* storageInterface);
/**
* This namespace contains internal details of the rollback system. It is only exposed in a header