diff options
author | jaume.moragues <jaume.moragues@mongodb.com> | 2020-10-19 10:46:42 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-05 07:54:07 +0000 |
commit | 3aae8cc5bc9d3d6b4476aebc63b67138375a81af (patch) | |
tree | 6e9dd8a77e2d28ea6126c0e707152ed495d1cb82 | |
parent | bd574911e9d1686922476938920516c37f9083f9 (diff) | |
download | mongo-3aae8cc5bc9d3d6b4476aebc63b67138375a81af.tar.gz |
SERVER-50241 PeriodicShardedIndexConsistencyChecker should skip dropped collections
(cherry picked from commit d78140ecb9ee4487d5442082fa46717a1ea3e0b1)
-rw-r--r-- | src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp b/src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp index 0fe3f045277..6f0cc59181c 100644 --- a/src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp +++ b/src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp @@ -146,6 +146,11 @@ void PeriodicShardedIndexConsistencyChecker::_launchShardedIndexConsistencyCheck opCtx, nullptr, nullptr, repl::ReadConcernLevel::kLocalReadConcern)); for (const auto& coll : collections) { + + if (coll.getDropped()) { + continue; + } + auto nss = coll.getNs(); // The only sharded collection in the config database with indexes is |