summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp b/src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp
index 487cd76739e..2dc66b905a2 100644
--- a/src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp
+++ b/src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp
@@ -209,6 +209,10 @@ StatusWith<SplitInfoVector> BalancerChunkSelectionPolicyImpl::selectChunksToSpli
SplitInfoVector splitCandidates;
for (const auto& coll : collections) {
+ if (coll.getDropped()) {
+ continue;
+ }
+
const NamespaceString nss(coll.getNs());
auto candidatesStatus = _getSplitCandidatesForCollection(txn, nss, shardStats);
@@ -257,6 +261,10 @@ StatusWith<MigrateInfoVector> BalancerChunkSelectionPolicyImpl::selectChunksToMo
MigrateInfoVector candidateChunks;
for (const auto& coll : collections) {
+ if (coll.getDropped()) {
+ continue;
+ }
+
const NamespaceString nss(coll.getNs());
if (!coll.getAllowBalance()) {