summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_limit.h
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2019-05-23 11:12:19 +0100
committerArun Banala <arun.banala@mongodb.com>2019-05-24 14:24:51 +0100
commit7536959e9afa7e5dd0ef7bc807630630e48d5706 (patch)
tree202f6bf9dd8264f1c8de61737e48a86e1ff2ab6a /src/mongo/db/pipeline/document_source_limit.h
parent4f034e89cc7978317d4a6ef34bc718a83ab55ecb (diff)
downloadmongo-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.h9
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 {