diff options
author | Eric Cox <eric.cox@mongodb.com> | 2022-06-28 15:34:10 +0000 |
---|---|---|
committer | Eric Cox <eric.cox@mongodb.com> | 2022-06-28 15:34:10 +0000 |
commit | 8e112f7a91b8f89cf87a2efd462559378056e15b (patch) | |
tree | 093e16aab8354ee0a26b16174652e3aabed445c7 | |
parent | 44a40ed8ddc6b494f565a979c27c890e47758bd4 (diff) | |
download | mongo-8e112f7a91b8f89cf87a2efd462559378056e15b.tar.gz |
fix tripping boost invarianteric/id-hack-ix-scan-refactor
-rw-r--r-- | src/mongo/db/query/sbe_stage_builder_index_scan.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/sbe_stage_builder_index_scan.cpp b/src/mongo/db/query/sbe_stage_builder_index_scan.cpp index 66072cda4b9..49e9d382fbc 100644 --- a/src/mongo/db/query/sbe_stage_builder_index_scan.cpp +++ b/src/mongo/db/query/sbe_stage_builder_index_scan.cpp @@ -987,8 +987,9 @@ generateSingleIntervalIndexScan(StageBuilderState& state, sbe::makeSV(), nullptr, planNodeId), - boost::make_optional(shouldRegisterLowHighKeyInRuntimeEnv, - std::pair(*lowKeySlot, *highKeySlot))}; + shouldRegisterLowHighKeyInRuntimeEnv + ? boost::make_optional(std::pair(*lowKeySlot, *highKeySlot)) + : boost::none}; } std::pair<std::unique_ptr<sbe::PlanStage>, PlanStageSlots> generateIndexScan( |