summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/implscope.cpp
diff options
context:
space:
mode:
authorMaria van Keulen <maria@mongodb.com>2017-03-07 12:00:08 -0500
committerMaria van Keulen <maria@mongodb.com>2017-03-07 12:00:08 -0500
commit589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79 (patch)
treec7a090ffdd56a91ae677e2492c61b820af44f964 /src/mongo/scripting/mozjs/implscope.cpp
parent3cba97198638df3750e3b455e2ad57af7ee536ae (diff)
downloadmongo-589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79.tar.gz
SERVER-27938 Rename all OperationContext variables to opCtx
This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
Diffstat (limited to 'src/mongo/scripting/mozjs/implscope.cpp')
-rw-r--r--src/mongo/scripting/mozjs/implscope.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/scripting/mozjs/implscope.cpp b/src/mongo/scripting/mozjs/implscope.cpp
index d660149ae2d..eb393f3703d 100644
--- a/src/mongo/scripting/mozjs/implscope.cpp
+++ b/src/mongo/scripting/mozjs/implscope.cpp
@@ -157,18 +157,18 @@ std::string MozJSImplScope::getError() {
return "";
}
-void MozJSImplScope::registerOperation(OperationContext* txn) {
+void MozJSImplScope::registerOperation(OperationContext* opCtx) {
invariant(_opCtx == nullptr);
// getPooledScope may call registerOperation with a nullptr, so we have to
// check for that here.
- if (!txn)
+ if (!opCtx)
return;
- _opCtx = txn;
- _opId = txn->getOpID();
+ _opCtx = opCtx;
+ _opId = opCtx->getOpID();
- _engine->registerOperation(txn, this);
+ _engine->registerOperation(opCtx, this);
}
void MozJSImplScope::unregisterOperation() {
@@ -751,7 +751,7 @@ void MozJSImplScope::gc() {
JS_RequestInterruptCallback(_runtime);
}
-void MozJSImplScope::localConnectForDbEval(OperationContext* txn, const char* dbName) {
+void MozJSImplScope::localConnectForDbEval(OperationContext* opCtx, const char* dbName) {
MozJSEntry entry(this);
if (_connectState == ConnectState::External)
@@ -782,7 +782,7 @@ void MozJSImplScope::localConnectForDbEval(OperationContext* txn, const char* db
_connectState = ConnectState::Local;
_localDBName = dbName;
- loadStored(txn);
+ loadStored(opCtx);
}
void MozJSImplScope::externalSetup() {