summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rollback_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/rollback_impl.cpp')
-rw-r--r--src/mongo/db/repl/rollback_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/rollback_impl.cpp b/src/mongo/db/repl/rollback_impl.cpp
index 7192aefa5c8..f4aadb526df 100644
--- a/src/mongo/db/repl/rollback_impl.cpp
+++ b/src/mongo/db/repl/rollback_impl.cpp
@@ -64,6 +64,7 @@
#include "mongo/db/session/kill_sessions_local.h"
#include "mongo/db/session/session_catalog_mongod.h"
#include "mongo/db/session/session_txn_record_gen.h"
+#include "mongo/db/storage/historical_ident_tracker.h"
#include "mongo/db/storage/remove_saver.h"
#include "mongo/db/transaction/transaction_history_iterator.h"
#include "mongo/logv2/log.h"
@@ -602,6 +603,9 @@ void RollbackImpl::_runPhaseFromAbortToReconstructPreparedTxns(
_rollbackStats.stableTimestamp = stableTimestamp;
_listener->onRecoverToStableTimestamp(stableTimestamp);
+ // Rollback historical ident entries.
+ HistoricalIdentTracker::get(opCtx).rollbackTo(stableTimestamp);
+
// Log the total number of insert and update operations that have been rolled back as a
// result of recovering to the stable timestamp.
auto getCommandCount = [&](StringData key) {