diff options
Diffstat (limited to 'src/mongo/db/s/balancer/balancer.cpp')
-rw-r--r-- | src/mongo/db/s/balancer/balancer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/balancer/balancer.cpp b/src/mongo/db/s/balancer/balancer.cpp index c90ecb53aae..6a9795646ff 100644 --- a/src/mongo/db/s/balancer/balancer.cpp +++ b/src/mongo/db/s/balancer/balancer.cpp @@ -549,7 +549,7 @@ Status Balancer::_enforceTagRanges(OperationContext* txn) { } for (const auto& splitInfo : chunksToSplitStatus.getValue()) { - auto scopedCMStatus = ScopedChunkManager::getExisting(txn, splitInfo.nss); + auto scopedCMStatus = ScopedChunkManager::refreshAndGet(txn, splitInfo.nss); if (!scopedCMStatus.isOK()) { return scopedCMStatus.getStatus(); } @@ -630,7 +630,7 @@ int Balancer::_moveChunks(OperationContext* txn, void Balancer::_splitOrMarkJumbo(OperationContext* txn, const NamespaceString& nss, const BSONObj& minKey) { - auto scopedChunkManager = uassertStatusOK(ScopedChunkManager::getExisting(txn, nss)); + auto scopedChunkManager = uassertStatusOK(ScopedChunkManager::refreshAndGet(txn, nss)); ChunkManager* const chunkManager = scopedChunkManager.cm(); auto chunk = chunkManager->findIntersectingChunkWithSimpleCollation(txn, minKey); |