summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rollback_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/rollback_impl.h')
-rw-r--r--src/mongo/db/repl/rollback_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/repl/rollback_impl.h b/src/mongo/db/repl/rollback_impl.h
index cbddbca41e7..1142ad73f6a 100644
--- a/src/mongo/db/repl/rollback_impl.h
+++ b/src/mongo/db/repl/rollback_impl.h
@@ -193,6 +193,16 @@ private:
void _checkShardIdentityRollback(OperationContext* opCtx);
/**
+ * The in-memory session transaction table needs to be cleared after rollback, so it is forced
+ * to refetch from storage.
+ *
+ * 'opCtx' cannot be null.
+ *
+ * Called by _tearDown().
+ */
+ void _clearSessionTransactionTable(OperationContext* opCtx);
+
+ /**
* Transitions the current member state from ROLLBACK to SECONDARY.
* This operation must succeed. Otherwise, we will shut down the server.
*