summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/pipeline.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2017-10-25 00:57:16 +0100
committerBernard Gorman <bernard.gorman@gmail.com>2017-12-14 11:01:55 +0000
commit9611f1368349db2fcbe7a7090d7bb7afe0f789af (patch)
tree22c8410fc9e3e83966103fea5ffc8349a7b3ce41 /src/mongo/db/pipeline/pipeline.h
parent8991cb9b4f54d943fb503c817ffb6aa59873099c (diff)
downloadmongo-9611f1368349db2fcbe7a7090d7bb7afe0f789af.tar.gz
SERVER-31689 Allow $facet to merge on mongoS if all its pipelines are eligible
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.h')
-rw-r--r--src/mongo/db/pipeline/pipeline.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/pipeline.h b/src/mongo/db/pipeline/pipeline.h
index 6697848fde3..51cf4c34da0 100644
--- a/src/mongo/db/pipeline/pipeline.h
+++ b/src/mongo/db/pipeline/pipeline.h
@@ -248,6 +248,11 @@ public:
bool needsMongosMerger() const;
/**
+ * Returns 'true' if any stage in the pipeline must run on a shard.
+ */
+ bool needsShard() const;
+
+ /**
* Returns true if the pipeline can run on mongoS, but is not obliged to; that is, it can run
* either on mongoS or on a shard.
*/