summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_remove_shard_cmd.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-08-19 16:46:53 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-08-25 12:56:27 -0400
commiteb0430ee860d22b164cd603ce7186842f72c8537 (patch)
tree86064e9a015fa76e537eba6640dc6e37da0067f5 /src/mongo/s/commands/cluster_remove_shard_cmd.cpp
parent0931a7e2eff3fcb6c8b06b0649069fbb625d05ae (diff)
downloadmongo-eb0430ee860d22b164cd603ce7186842f72c8537.tar.gz
SERVER-19875 Make (almost) all CatalogManager methods take OperationContext
Diffstat (limited to 'src/mongo/s/commands/cluster_remove_shard_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_remove_shard_cmd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_remove_shard_cmd.cpp b/src/mongo/s/commands/cluster_remove_shard_cmd.cpp
index 75af3d2ed9d..a9ad5bd122d 100644
--- a/src/mongo/s/commands/cluster_remove_shard_cmd.cpp
+++ b/src/mongo/s/commands/cluster_remove_shard_cmd.cpp
@@ -102,7 +102,7 @@ public:
}
vector<string> databases;
- catalogManager->getDatabasesForShard(s->getId(), &databases);
+ catalogManager->getDatabasesForShard(txn, s->getId(), &databases);
// Get BSONObj containing:
// 1) note about moving or dropping databases in a shard
@@ -132,7 +132,8 @@ public:
break;
case ShardDrainingStatus::ONGOING: {
vector<ChunkType> chunks;
- Status status = catalogManager->getChunks(BSON(ChunkType::shard(s->getId())),
+ Status status = catalogManager->getChunks(txn,
+ BSON(ChunkType::shard(s->getId())),
BSONObj(),
boost::none, // return all
&chunks,