summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Mendez <sebastien.mendez@mongodb.com>2022-09-22 13:19:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-22 14:16:13 +0000
commit7b52219b95967bce103e85f7a26bfaf70f5146c6 (patch)
treee3e315d5f148d81c5f2e69eaf779f48e20ba7abe
parenta8e766c2749d841307abef825a108b4e749e9463 (diff)
downloadmongo-7b52219b95967bce103e85f7a26bfaf70f5146c6.tar.gz
SERVER-69280 Fixed use-after-move defect in IndexScan
-rw-r--r--src/mongo/db/exec/index_scan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/index_scan.cpp b/src/mongo/db/exec/index_scan.cpp
index 0c64eaf721b..03b29817202 100644
--- a/src/mongo/db/exec/index_scan.cpp
+++ b/src/mongo/db/exec/index_scan.cpp
@@ -76,8 +76,8 @@ IndexScan::IndexScan(ExpressionContext* expCtx,
_forward(params.direction == 1),
_shouldDedup(params.shouldDedup),
_addKeyMetadata(params.addKeyMetadata),
- _startKeyInclusive(IndexBounds::isStartIncludedInBound(params.bounds.boundInclusion)),
- _endKeyInclusive(IndexBounds::isEndIncludedInBound(params.bounds.boundInclusion)) {
+ _startKeyInclusive(IndexBounds::isStartIncludedInBound(_bounds.boundInclusion)),
+ _endKeyInclusive(IndexBounds::isEndIncludedInBound(_bounds.boundInclusion)) {
_specificStats.indexName = params.name;
_specificStats.keyPattern = _keyPattern;
_specificStats.isMultiKey = params.isMultiKey;