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/s/client/shard_registry.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/s/client/shard_registry.h')
-rw-r--r-- | src/mongo/s/client/shard_registry.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/client/shard_registry.h b/src/mongo/s/client/shard_registry.h index 374329aad7d..92e31156e88 100644 --- a/src/mongo/s/client/shard_registry.h +++ b/src/mongo/s/client/shard_registry.h @@ -53,7 +53,7 @@ class ShardType; class ShardRegistryData { public: - ShardRegistryData(OperationContext* txn, ShardFactory* shardFactory); + ShardRegistryData(OperationContext* opCtx, ShardFactory* shardFactory); ShardRegistryData() = default; ~ShardRegistryData() = default; @@ -101,7 +101,7 @@ private: /** * Reads shards docs from the catalog client and fills in maps. */ - void _init(OperationContext* txn, ShardFactory* factory); + void _init(OperationContext* opCtx, ShardFactory* factory); /** * Creates a shard based on the specified information and puts it into the lookup maps. @@ -171,7 +171,7 @@ public: * reloading is required, the caller should call this method one more time if the first call * returned false. */ - bool reload(OperationContext* txn); + bool reload(OperationContext* opCtx); /** * Takes a connection string describing either a shard or config server replica set, looks @@ -188,7 +188,7 @@ public: * parameter can actually be the shard name or the HostAndPort for any * server in the shard. */ - StatusWith<std::shared_ptr<Shard>> getShard(OperationContext* txn, const ShardId& shardId); + StatusWith<std::shared_ptr<Shard>> getShard(OperationContext* opCtx, const ShardId& shardId); /** * Returns a shared pointer to the shard object with the given shard id. The shardId parameter |