summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_plan_executor.cpp
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2022-05-20 11:47:42 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-31 14:41:36 +0000
commit0b5f72d6e251cb402aa3d8bb102cbba6b5734e8d (patch)
tree5045f9e06cd407506ecf4c8502583ad25168a4df /src/mongo/dbtests/query_plan_executor.cpp
parente456ccda58bfc7cdae7803786d5527bcd2fb7187 (diff)
downloadmongo-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.cpp3
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];
}