summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Liu <rui.liu@mongodb.com>2022-03-15 14:12:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-15 15:09:44 +0000
commit5bc5790be407657748307f20404af62de62cba31 (patch)
tree53dc0d7de443cb3ff86ad700d3946890b6fe6ed8
parent752a152162a22d90ac28164d284f4055552e00a1 (diff)
downloadmongo-5bc5790be407657748307f20404af62de62cba31.tar.gz
SERVER-64474 Add null pointer assertion for index descriptor access during index join
-rw-r--r--src/mongo/db/query/sbe_stage_builder_lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/sbe_stage_builder_lookup.cpp b/src/mongo/db/query/sbe_stage_builder_lookup.cpp
index 1c098e08633..13f5cf3730e 100644
--- a/src/mongo/db/query/sbe_stage_builder_lookup.cpp
+++ b/src/mongo/db/query/sbe_stage_builder_lookup.cpp
@@ -326,7 +326,7 @@ std::pair<SlotId, std::unique_ptr<sbe::PlanStage>> buildIndexJoinLookupStage(
foreignColl->getIndexCatalog()->findIndexByName(state.opCtx, indexName);
tassert(6447401,
str::stream() << "Index " << indexName
- << " should is unexpectedly missing for $lookup index join",
+ << " is unexpectedly missing for $lookup index join",
indexDescriptor);
const auto indexAccessMethod =
foreignColl->getIndexCatalog()->getEntry(indexDescriptor)->accessMethod()->asSortedData();