diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-08-19 16:46:53 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-08-25 12:56:27 -0400 |
commit | eb0430ee860d22b164cd603ce7186842f72c8537 (patch) | |
tree | 86064e9a015fa76e537eba6640dc6e37da0067f5 /src/mongo/s/commands/cluster_remove_shard_cmd.cpp | |
parent | 0931a7e2eff3fcb6c8b06b0649069fbb625d05ae (diff) | |
download | mongo-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.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, |