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 08:27:37 +0000 |
commit | 19e18e0b0e4afa0fa807115b83a377dc3a68c505 (patch) | |
tree | 76488d74e911c2cbcccab8cec37d43525fbf707e | |
parent | 49f1a187b3acee15461c4863af4c440509d5f89c (diff) | |
download | mongo-19e18e0b0e4afa0fa807115b83a377dc3a68c505.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 8a34d3c4109..b8b32446030 100644 --- a/src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp +++ b/src/mongo/db/s/periodic_sharded_index_consistency_checker.cpp @@ -148,6 +148,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 |