summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.h
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/db/cloner.h
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/db/cloner.h')
-rw-r--r--src/mongo/db/cloner.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/cloner.h b/src/mongo/db/cloner.h
index a7f8bdcd50d..6c9abb64b12 100644
--- a/src/mongo/db/cloner.h
+++ b/src/mongo/db/cloner.h
@@ -62,14 +62,14 @@ public:
* that are cloned. When opts.createCollections is true, this parameter is
* ignored and the collection list is fetched from the remote via _conn.
*/
- Status copyDb(OperationContext* txn,
+ Status copyDb(OperationContext* opCtx,
const std::string& toDBName,
const std::string& masterHost,
const CloneOptions& opts,
std::set<std::string>* clonedColls,
std::vector<BSONObj> collectionsToClone = std::vector<BSONObj>());
- bool copyCollection(OperationContext* txn,
+ bool copyCollection(OperationContext* opCtx,
const std::string& ns,
const BSONObj& query,
std::string& errmsg,
@@ -89,7 +89,7 @@ public:
// Executes 'createCollection' for each collection described in 'createCollectionParams', in
// 'dbName'.
- Status createCollectionsForDb(OperationContext* txn,
+ Status createCollectionsForDb(OperationContext* opCtx,
const std::vector<CreateCollectionParams>& createCollectionParams,
const std::string& dbName);
@@ -99,7 +99,7 @@ public:
static BSONObj getIdIndexSpec(const std::list<BSONObj>& indexSpecs);
private:
- void copy(OperationContext* txn,
+ void copy(OperationContext* opCtx,
const std::string& toDBName,
const NamespaceString& from_ns,
const BSONObj& from_opts,
@@ -108,7 +108,7 @@ private:
const CloneOptions& opts,
Query q);
- void copyIndexes(OperationContext* txn,
+ void copyIndexes(OperationContext* opCtx,
const std::string& toDBName,
const NamespaceString& from_ns,
const BSONObj& from_opts,