diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2022-05-20 11:47:42 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-31 14:41:36 +0000 |
commit | 0b5f72d6e251cb402aa3d8bb102cbba6b5734e8d (patch) | |
tree | 5045f9e06cd407506ecf4c8502583ad25168a4df /src/mongo/dbtests/query_plan_executor.cpp | |
parent | e456ccda58bfc7cdae7803786d5527bcd2fb7187 (diff) | |
download | mongo-0b5f72d6e251cb402aa3d8bb102cbba6b5734e8d.tar.gz |
SERVER-63865 Handle missing index idents during standalone startup recovery
Diffstat (limited to 'src/mongo/dbtests/query_plan_executor.cpp')
-rw-r--r-- | src/mongo/dbtests/query_plan_executor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/query_plan_executor.cpp b/src/mongo/dbtests/query_plan_executor.cpp index b97dae14aa5..7b3249b313d 100644 --- a/src/mongo/dbtests/query_plan_executor.cpp +++ b/src/mongo/dbtests/query_plan_executor.cpp @@ -188,7 +188,8 @@ private: CollectionPtr collection = CollectionCatalog::get(&_opCtx)->lookupCollectionByNamespace(&_opCtx, nss); std::vector<const IndexDescriptor*> indexes; - collection->getIndexCatalog()->findIndexesByKeyPattern(&_opCtx, obj, false, &indexes); + collection->getIndexCatalog()->findIndexesByKeyPattern( + &_opCtx, obj, IndexCatalog::InclusionPolicy::kReady, &indexes); ASSERT_LTE(indexes.size(), 1U); return indexes.size() == 0 ? nullptr : indexes[0]; } |