diff options
author | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-03-23 15:05:15 -0400 |
---|---|---|
committer | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-03-29 13:28:11 -0400 |
commit | 6306b96749d4a547a1fa023eb1a0085b37e75c07 (patch) | |
tree | dc1319cd6b4782d70b9d084a524ada7b31998a96 /src/mongo/db/s/balancer/balancer.cpp | |
parent | 50e1e0be8d2eeccf866a3b249f63bdfdf91e3698 (diff) | |
download | mongo-6306b96749d4a547a1fa023eb1a0085b37e75c07.tar.gz |
SERVER-33797: Reload ShardRegistry on shard collection command
Diffstat (limited to 'src/mongo/db/s/balancer/balancer.cpp')
-rw-r--r-- | src/mongo/db/s/balancer/balancer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/balancer/balancer.cpp b/src/mongo/db/s/balancer/balancer.cpp index be50d5c8f60..52699c273a2 100644 --- a/src/mongo/db/s/balancer/balancer.cpp +++ b/src/mongo/db/s/balancer/balancer.cpp @@ -467,7 +467,7 @@ bool Balancer::_checkOIDs(OperationContext* opCtx) { auto shardingContext = Grid::get(opCtx); vector<ShardId> all; - shardingContext->shardRegistry()->getAllShardIds(&all); + shardingContext->shardRegistry()->getAllShardIdsNoReload(&all); // map of OID machine ID => shardId map<int, ShardId> oids; |