diff options
author | Misha Ivkov <misha.ivkov@10gen.com> | 2019-07-26 09:45:17 -0400 |
---|---|---|
committer | Misha Ivkov <misha.ivkov@10gen.com> | 2019-08-08 09:35:31 -0400 |
commit | e911ae3b0e1eba1339cbfa90d49a3daccd304e16 (patch) | |
tree | b502fa4ffade59d0cdb391deeeac8ad4b93c1c0d /src/mongo/db/exec/sort_key_generator.cpp | |
parent | 5057974733dd260edc5a07ef4d43a78338f8143a (diff) | |
download | mongo-e911ae3b0e1eba1339cbfa90d49a3daccd304e16.tar.gz |
SERVER-42298 Use SortPattern in the implementation of SortKeyGenerator
Diffstat (limited to 'src/mongo/db/exec/sort_key_generator.cpp')
-rw-r--r-- | src/mongo/db/exec/sort_key_generator.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/exec/sort_key_generator.cpp b/src/mongo/db/exec/sort_key_generator.cpp index 7b846f18bad..90fe3b48fea 100644 --- a/src/mongo/db/exec/sort_key_generator.cpp +++ b/src/mongo/db/exec/sort_key_generator.cpp @@ -49,12 +49,13 @@ namespace mongo { const char* SortKeyGeneratorStage::kStageType = "SORT_KEY_GENERATOR"; -SortKeyGeneratorStage::SortKeyGeneratorStage(OperationContext* opCtx, +SortKeyGeneratorStage::SortKeyGeneratorStage(const boost::intrusive_ptr<ExpressionContext>& pExpCtx, PlanStage* child, WorkingSet* ws, - const BSONObj& sortSpecObj, - const CollatorInterface* collator) - : PlanStage(kStageType, opCtx), _ws(ws), _sortKeyGen(sortSpecObj, collator) { + const BSONObj& sortSpecObj) + : PlanStage(kStageType, pExpCtx->opCtx), + _ws(ws), + _sortKeyGen({{sortSpecObj, pExpCtx}, pExpCtx->getCollator()}) { _children.emplace_back(child); } |