summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_kill_op.cpp
diff options
context:
space:
mode:
authorDaniel Alabi <alabidan@gmail.com>2015-06-18 15:08:21 -0400
committerDaniel Alabi <alabidan@gmail.com>2015-06-18 17:31:17 -0400
commite28994cc6aed7917f4a90d842686fd7c1eb21dd9 (patch)
tree4ed041937bf72fa23d1df99d6fc4aa24d03bc1a6 /src/mongo/s/commands/cluster_kill_op.cpp
parent847921de5b1d933fbcf61806c59e7f635111bd2f (diff)
downloadmongo-e28994cc6aed7917f4a90d842686fd7c1eb21dd9.tar.gz
SERVER-18815 Rename shard registry's findIfExists(...) to getShard(...) and avoid references to shared pointers to Shard object
Diffstat (limited to 'src/mongo/s/commands/cluster_kill_op.cpp')
-rw-r--r--src/mongo/s/commands/cluster_kill_op.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_kill_op.cpp b/src/mongo/s/commands/cluster_kill_op.cpp
index cff677983a5..e6f3a127b56 100644
--- a/src/mongo/s/commands/cluster_kill_op.cpp
+++ b/src/mongo/s/commands/cluster_kill_op.cpp
@@ -96,7 +96,7 @@ namespace {
log() << "want to kill op: " << opToKill;
// Will throw if shard id is not found
- auto shard = grid.shardRegistry()->findIfExists(shardIdent);
+ auto shard = grid.shardRegistry()->getShard(shardIdent);
if (!shard) {
return appendCommandStatus(result,
Status(ErrorCodes::ShardNotFound,