diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2019-05-09 20:03:43 +0100 |
---|---|---|
committer | Bernard Gorman <bernard.gorman@gmail.com> | 2019-05-17 16:22:28 +0100 |
commit | c7f86d2fce5ad0145b57007f83584cf96d02d9d4 (patch) | |
tree | ae865183a5c1094c2aafbe65df9985ba8534181a /src/mongo/db/pipeline/expression_context.h | |
parent | 99585f23be46f97d2e8a962d00fef6ca6758390c (diff) | |
download | mongo-c7f86d2fce5ad0145b57007f83584cf96d02d9d4.tar.gz |
SERVER-40406 Add support for $$NOW and $$CLUSTER_TIME in the update command
Diffstat (limited to 'src/mongo/db/pipeline/expression_context.h')
-rw-r--r-- | src/mongo/db/pipeline/expression_context.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/expression_context.h b/src/mongo/db/pipeline/expression_context.h index c02310887c7..4ed86cf5efb 100644 --- a/src/mongo/db/pipeline/expression_context.h +++ b/src/mongo/db/pipeline/expression_context.h @@ -108,10 +108,12 @@ public: boost::optional<UUID> collUUID); /** - * Constructs an ExpressionContext to be used for MatchExpression parsing outside of the context - * of aggregation. + * Constructs an ExpressionContext suitable for use outside of the aggregation system, including + * for MatchExpression parsing and executing pipeline-style operations in the Update system. */ - ExpressionContext(OperationContext* opCtx, const CollatorInterface* collator); + ExpressionContext(OperationContext* opCtx, + const CollatorInterface* collator, + const boost::optional<RuntimeConstants>& runtimeConstants = boost::none); /** * Used by a pipeline to check for interrupts so that killOp() works. Throws a UserAssertion if |