diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp b/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp index 028f79e32ae..18337e99d29 100644 --- a/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp +++ b/src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp @@ -103,7 +103,7 @@ public: return Status::OK(); } - virtual bool run(OperationContext* txn, + virtual bool run(OperationContext* opCtx, const std::string& dbname, BSONObj& cmdObj, int options, @@ -116,9 +116,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(), |