summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression_context.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2017-08-01 23:15:53 +0100
committerBernard Gorman <bernard.gorman@gmail.com>2017-08-02 14:15:37 +0100
commit27d43e300e292043fefd7634de99160157955a17 (patch)
tree31844a3949fd1c900b3f7e93929faea1671b0c9b /src/mongo/db/pipeline/expression_context.h
parent20c85d4848b4e4b3c88e1788eaff362143fffd20 (diff)
downloadmongo-27d43e300e292043fefd7634de99160157955a17.tar.gz
SERVER-18940 Optimise sharded aggregations that are targeted to a single shard
Diffstat (limited to 'src/mongo/db/pipeline/expression_context.h')
-rw-r--r--src/mongo/db/pipeline/expression_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/expression_context.h b/src/mongo/db/pipeline/expression_context.h
index ba2690796f6..c67ba4ab9b8 100644
--- a/src/mongo/db/pipeline/expression_context.h
+++ b/src/mongo/db/pipeline/expression_context.h
@@ -113,7 +113,8 @@ public:
// The explain verbosity requested by the user, or boost::none if no explain was requested.
boost::optional<ExplainOptions::Verbosity> explain;
- bool inShard = false;
+ bool fromRouter = false;
+ bool needsMerge = false;
bool inRouter = false;
bool extSortAllowed = false;
bool bypassDocumentValidation = false;