diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-08-29 05:15:39 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-29 05:15:39 +0000 |
commit | ffd486c3ff049abc9f8a2c76b3e2b9dea970c19b (patch) | |
tree | 8e030dff77ff90c04aad143e14d1e2d924a92dcb /src/mongo/db/exec/count_scan.cpp | |
parent | 98413549db019381b09c85299cee53c31e284f17 (diff) | |
download | mongo-ffd486c3ff049abc9f8a2c76b3e2b9dea970c19b.tar.gz |
SERVER-42248 Remove SortedDataInterface::seek() which accepts a BSONObj
Diffstat (limited to 'src/mongo/db/exec/count_scan.cpp')
-rw-r--r-- | src/mongo/db/exec/count_scan.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/exec/count_scan.cpp b/src/mongo/db/exec/count_scan.cpp index 55379bd5550..c24f3ef1343 100644 --- a/src/mongo/db/exec/count_scan.cpp +++ b/src/mongo/db/exec/count_scan.cpp @@ -115,7 +115,13 @@ PlanStage::StageState CountScan::doWork(WorkingSetID* out) { _cursor = indexAccessMethod()->newCursor(getOpCtx()); _cursor->setEndPosition(_endKey, _endKeyInclusive); - entry = _cursor->seek(_startKey, _startKeyInclusive, kWantLoc); + auto keyStringForSeek = IndexEntryComparison::makeKeyStringFromBSONKeyForSeek( + _startKey, + indexAccessMethod()->getSortedDataInterface()->getKeyStringVersion(), + indexAccessMethod()->getSortedDataInterface()->getOrdering(), + true, /* forward */ + _startKeyInclusive); + entry = _cursor->seek(keyStringForSeek); } else { entry = _cursor->next(kWantLoc); } |