diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_remove_shard_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_remove_shard_cmd.cpp | 5 |
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, |