summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression_context.h
diff options
context:
space:
mode:
authorMartin Neupauer <martin.neupauer@mongodb.com>2019-02-26 16:11:27 -0500
committerMartin Neupauer <martin.neupauer@mongodb.com>2019-03-26 10:26:11 -0400
commitb3c4979387d711a46dc5837ac861b9c2e34eb631 (patch)
treee83b2fdd3176c1bbacb707d404394a66ecba5a42 /src/mongo/db/pipeline/expression_context.h
parent1053cf8347e7aeaca24d47039980c765dae75d5b (diff)
downloadmongo-b3c4979387d711a46dc5837ac861b9c2e34eb631.tar.gz
SERVER-40209 Implement $$NOW and $$CLUSTER_TIME
Diffstat (limited to 'src/mongo/db/pipeline/expression_context.h')
-rw-r--r--src/mongo/db/pipeline/expression_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/expression_context.h b/src/mongo/db/pipeline/expression_context.h
index 156d58854d1..e3e9e76b2f3 100644
--- a/src/mongo/db/pipeline/expression_context.h
+++ b/src/mongo/db/pipeline/expression_context.h
@@ -196,6 +196,9 @@ public:
_resolvedNamespaces[nss.coll()] = std::move(resolvedNamespace);
}
+ auto getRuntimeConstants() const {
+ return variables.getRuntimeConstants();
+ }
// The explain verbosity requested by the user, or boost::none if no explain was requested.
boost::optional<ExplainOptions::Verbosity> explain;