summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/multiapplier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/multiapplier.cpp')
-rw-r--r--src/mongo/db/repl/multiapplier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/multiapplier.cpp b/src/mongo/db/repl/multiapplier.cpp
index 036ab4f0d4d..ac78a4f2c8c 100644
--- a/src/mongo/db/repl/multiapplier.cpp
+++ b/src/mongo/db/repl/multiapplier.cpp
@@ -159,8 +159,8 @@ void MultiApplier::_callback(const executor::TaskExecutor::CallbackArgs& cbd) {
StatusWith<OpTime> applyStatus(ErrorCodes::InternalError, "not mutated");
try {
- auto txn = cc().makeOperationContext();
- applyStatus = _multiApply(txn.get(), _operations, _applyOperation);
+ auto opCtx = cc().makeOperationContext();
+ applyStatus = _multiApply(opCtx.get(), _operations, _applyOperation);
} catch (...) {
applyStatus = exceptionToStatus();
}