diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2018-07-25 13:31:11 +0100 |
---|---|---|
committer | Bernard Gorman <bernard.gorman@gmail.com> | 2018-08-10 14:18:54 +0100 |
commit | 6f9bb8538a9d081d56437c032353f7fdb7e4e562 (patch) | |
tree | ca3a18e1401bf31e510b100c44add5b424d46a91 /src/mongo/dbtests/query_stage_ixscan.cpp | |
parent | d054cd1149acb76830fff466ef3bb234741b5a46 (diff) | |
download | mongo-6f9bb8538a9d081d56437c032353f7fdb7e4e562.tar.gz |
SERVER-35500 Implement special bounds generation for allPaths indexes
Diffstat (limited to 'src/mongo/dbtests/query_stage_ixscan.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_ixscan.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/dbtests/query_stage_ixscan.cpp b/src/mongo/dbtests/query_stage_ixscan.cpp index 9449da1e3b0..416d11646b3 100644 --- a/src/mongo/dbtests/query_stage_ixscan.cpp +++ b/src/mongo/dbtests/query_stage_ixscan.cpp @@ -101,8 +101,7 @@ public: ASSERT_EQ(indexes.size(), 1U); // We are not testing indexing here so use maximal bounds - IndexScanParams params; - params.descriptor = indexes[0]; + IndexScanParams params(&_opCtx, *indexes[0]); params.bounds.isSimpleRange = true; params.bounds.startKey = startKey; params.bounds.endKey = endKey; @@ -124,8 +123,7 @@ public: catalog->findIndexesByKeyPattern(&_opCtx, BSON("x" << 1), false, &indexes); ASSERT_EQ(indexes.size(), 1U); - IndexScanParams params; - params.descriptor = indexes[0]; + IndexScanParams params(&_opCtx, *indexes[0]); params.direction = direction; OrderedIntervalList oil("x"); |