diff options
author | Arun Banala <arun.banala@mongodb.com> | 2019-05-23 11:12:19 +0100 |
---|---|---|
committer | Arun Banala <arun.banala@mongodb.com> | 2019-05-24 14:24:51 +0100 |
commit | 7536959e9afa7e5dd0ef7bc807630630e48d5706 (patch) | |
tree | 202f6bf9dd8264f1c8de61737e48a86e1ff2ab6a /src/mongo/db/pipeline/document_source_limit.h | |
parent | 4f034e89cc7978317d4a6ef34bc718a83ab55ecb (diff) | |
download | mongo-7536959e9afa7e5dd0ef7bc807630630e48d5706.tar.gz |
SERVER-41180 Rename 'MergingLogic' to 'DistributedPlanLogic' to avoid confusion with $merge
Diffstat (limited to 'src/mongo/db/pipeline/document_source_limit.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source_limit.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/document_source_limit.h b/src/mongo/db/pipeline/document_source_limit.h index 5105f2fa787..3cecb165cf0 100644 --- a/src/mongo/db/pipeline/document_source_limit.h +++ b/src/mongo/db/pipeline/document_source_limit.h @@ -76,14 +76,15 @@ public: } /** - * Returns a MergingLogic with two identical $limit stages; one for the shards pipeline and one - * for the merging pipeline. + * Returns a DistributedPlanLogic with two identical $limit stages; one for the shards pipeline + * and one for the merging pipeline. */ - boost::optional<MergingLogic> mergingLogic() final { + boost::optional<DistributedPlanLogic> distributedPlanLogic() final { // Running this stage on the shards is an optimization, but is not strictly necessary in // order to produce correct pipeline output. // {shardsStage, mergingStage, sortPattern} - return MergingLogic{this, DocumentSourceLimit::create(pExpCtx, _limit), boost::none}; + return DistributedPlanLogic{ + this, DocumentSourceLimit::create(pExpCtx, _limit), boost::none}; } long long getLimit() const { |