summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/scripting/mozjs/engine.cpp')
-rw-r--r--src/mongo/scripting/mozjs/engine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/scripting/mozjs/engine.cpp b/src/mongo/scripting/mozjs/engine.cpp
index f67ba8e161b..da842847ec6 100644
--- a/src/mongo/scripting/mozjs/engine.cpp
+++ b/src/mongo/scripting/mozjs/engine.cpp
@@ -147,15 +147,15 @@ void MozJSScriptEngine::setJSHeapLimitMB(int limit) {
jsHeapLimitMB.store(limit);
}
-void MozJSScriptEngine::registerOperation(OperationContext* txn, MozJSImplScope* scope) {
+void MozJSScriptEngine::registerOperation(OperationContext* opCtx, MozJSImplScope* scope) {
stdx::lock_guard<stdx::mutex> giLock(_globalInterruptLock);
- auto opId = txn->getOpID();
+ auto opId = opCtx->getOpID();
_opToScopeMap[opId] = scope;
LOG(2) << "SMScope " << static_cast<const void*>(scope) << " registered for op " << opId;
- Status status = txn->checkForInterruptNoAssert();
+ Status status = opCtx->checkForInterruptNoAssert();
if (!status.isOK()) {
scope->kill();
}