diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2017-10-25 00:57:16 +0100 |
---|---|---|
committer | Bernard Gorman <bernard.gorman@gmail.com> | 2017-12-14 11:01:55 +0000 |
commit | 9611f1368349db2fcbe7a7090d7bb7afe0f789af (patch) | |
tree | 22c8410fc9e3e83966103fea5ffc8349a7b3ce41 /src/mongo/db/pipeline/pipeline.h | |
parent | 8991cb9b4f54d943fb503c817ffb6aa59873099c (diff) | |
download | mongo-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.h | 5 |
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. */ |