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, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/rollback_impl.cpp b/src/mongo/db/repl/rollback_impl.cpp
index 8e55421101b..0d8de17e588 100644
--- a/src/mongo/db/repl/rollback_impl.cpp
+++ b/src/mongo/db/repl/rollback_impl.cpp
@@ -115,10 +115,10 @@ Status RollbackImpl::runRollback(OperationContext* opCtx) {
}
// Recover to the stable timestamp while holding the global exclusive lock.
- auto storageEngine = opCtx->getServiceContext()->getGlobalStorageEngine();
+ auto serviceCtx = opCtx->getServiceContext();
{
Lock::GlobalWrite globalWrite(opCtx);
- status = _storageInterface->recoverToStableTimestamp(storageEngine);
+ status = _storageInterface->recoverToStableTimestamp(serviceCtx);
if (!status.isOK()) {
return status;
}