summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp b/src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp
index 6ab4e01cd54..43f2b4a3539 100644
--- a/src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp
+++ b/src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp
@@ -96,7 +96,7 @@ public:
return Status::OK();
}
- virtual bool run(OperationContext* txn,
+ virtual bool run(OperationContext* opCtx,
const std::string& dbname,
BSONObj& cmdObj,
int options,
@@ -108,9 +108,9 @@ public:
parsedRequest.appendAsConfigCommand(&cmdBuilder);
cmdBuilder.append("writeConcern", kMajorityWriteConcern.toBSON());
- auto configShard = Grid::get(txn)->shardRegistry()->getConfigShard();
+ auto configShard = Grid::get(opCtx)->shardRegistry()->getConfigShard();
auto cmdResponseStatus = uassertStatusOK(
- configShard->runCommandWithFixedRetryAttempts(txn,
+ configShard->runCommandWithFixedRetryAttempts(opCtx,
kPrimaryOnlyReadPreference,
"admin",
cmdBuilder.obj(),