summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_external_state.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-07 20:18:33 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-07 20:18:33 -0400
commitfd62ac35e27f83155cbe3d60bf02c49f45298e54 (patch)
tree09368db6e56db643e06c0ee97c65b07dc753f9c0 /src/mongo/db/repl/replication_coordinator_external_state.h
parent9255b0a684c6c9ca35da96493b91f04b832dc792 (diff)
downloadmongo-fd62ac35e27f83155cbe3d60bf02c49f45298e54.tar.gz
Revert "SERVER-29893 Rename recovery code and make it accessible to both startup and rollback"
This reverts commit 8fa770baf8fac6e71a45f84b48eeb3bae96a8dab.
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator_external_state.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state.h b/src/mongo/db/repl/replication_coordinator_external_state.h
index 617c92cb7fa..81d217dac06 100644
--- a/src/mongo/db/repl/replication_coordinator_external_state.h
+++ b/src/mongo/db/repl/replication_coordinator_external_state.h
@@ -204,6 +204,13 @@ public:
virtual StatusWith<OpTime> loadLastOpTime(OperationContext* opCtx) = 0;
/**
+ * Cleaning up the oplog, by potentially truncating:
+ * If we are recovering from a failed batch then minvalid.start though minvalid.end need
+ * to be removed from the oplog before we can start applying operations.
+ */
+ virtual void cleanUpLastApplyBatch(OperationContext* opCtx) = 0;
+
+ /**
* Returns the HostAndPort of the remote client connected to us that initiated the operation
* represented by "opCtx".
*/