diff options
author | Maria van Keulen <maria@mongodb.com> | 2017-03-07 12:00:08 -0500 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2017-03-07 12:00:08 -0500 |
commit | 589a5c169ced8f6e9ddcd3d182ae1b75db6b7d79 (patch) | |
tree | c7a090ffdd56a91ae677e2492c61b820af44f964 /src/mongo/scripting/engine.h | |
parent | 3cba97198638df3750e3b455e2ad57af7ee536ae (diff) | |
download | mongo-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/engine.h')
-rw-r--r-- | src/mongo/scripting/engine.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/scripting/engine.h b/src/mongo/scripting/engine.h index 40633a81afe..80d4f35f654 100644 --- a/src/mongo/scripting/engine.h +++ b/src/mongo/scripting/engine.h @@ -56,7 +56,7 @@ public: virtual void reset() = 0; virtual void init(const BSONObj* data) = 0; - virtual void registerOperation(OperationContext* txn) = 0; + virtual void registerOperation(OperationContext* opCtx) = 0; virtual void unregisterOperation() = 0; void init(const char* data) { @@ -64,7 +64,7 @@ public: init(&o); } - virtual void localConnectForDbEval(OperationContext* txn, const char* dbName) = 0; + virtual void localConnectForDbEval(OperationContext* opCtx, const char* dbName) = 0; virtual void externalSetup() = 0; virtual void setLocalDB(const std::string& localDBName) { _localDBName = localDBName; @@ -161,13 +161,13 @@ public: void execCoreFiles(); - virtual void loadStored(OperationContext* txn, bool ignoreNotConnected = false); + virtual void loadStored(OperationContext* opCtx, bool ignoreNotConnected = false); /** * if any changes are made to .system.js, call this * right now its just global - slightly inefficient, but a lot simpler */ - static void storedFuncMod(OperationContext* txn); + static void storedFuncMod(OperationContext* opCtx); static void validateObjectIdString(const std::string& str); @@ -261,7 +261,7 @@ public: * This must include authenticated users. * @return the scope */ - std::unique_ptr<Scope> getPooledScope(OperationContext* txn, + std::unique_ptr<Scope> getPooledScope(OperationContext* opCtx, const std::string& db, const std::string& scopeType); |