diff options
author | Eric Cox <eric.cox@mongodb.com> | 2022-06-16 14:58:02 +0000 |
---|---|---|
committer | Eric Cox <eric.cox@mongodb.com> | 2022-06-16 14:58:02 +0000 |
commit | 330b4c092b1b41f4c9eb08b489b3eaf7a017eb98 (patch) | |
tree | ac6b4dc0a41100b2e6e7f849a3a09d8e485a09a5 /src/mongo/db/exec/sbe | |
parent | 30cf050f7535b24c7bc79538af1f85eebaa0aee5 (diff) | |
download | mongo-330b4c092b1b41f4c9eb08b489b3eaf7a017eb98.tar.gz |
fast path + inlined ks
Diffstat (limited to 'src/mongo/db/exec/sbe')
-rw-r--r-- | src/mongo/db/exec/sbe/stages/ix_scan.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/exec/sbe/stages/ix_scan.cpp b/src/mongo/db/exec/sbe/stages/ix_scan.cpp index 563f999d20b..ba8cd9704e4 100644 --- a/src/mongo/db/exec/sbe/stages/ix_scan.cpp +++ b/src/mongo/db/exec/sbe/stages/ix_scan.cpp @@ -170,6 +170,7 @@ void IndexScanStage::prepare(CompileCtx& ctx) { if (_seekKeyHighVar) { ctx.root = this; _seekKeyHighCodes = _seekKeyHighVar->compile(ctx); + _seekKeyHighHolder = std::make_unique<value::OwnedValueAccessor>(); } } @@ -495,6 +496,13 @@ std::vector<DebugPrinter::Block> IndexScanStage::debugPrint() const { } else { DebugPrinter::addIdentifier(ret, DebugPrinter::kNoneKeyword); } + } else if (_seekKeyLowVar) { + DebugPrinter::addBlocks(ret, _seekKeyLowVar->debugPrint()); + if (_seekKeyHighVar) { + DebugPrinter::addBlocks(ret, _seekKeyHighVar->debugPrint()); + } else { + DebugPrinter::addIdentifier(ret, DebugPrinter::kNoneKeyword); + } } if (_recordSlot) { |