diff options
author | Martin Neupauer <martin.neupauer@mongodb.com> | 2019-02-26 16:11:27 -0500 |
---|---|---|
committer | Martin Neupauer <martin.neupauer@mongodb.com> | 2019-03-26 10:26:11 -0400 |
commit | b3c4979387d711a46dc5837ac861b9c2e34eb631 (patch) | |
tree | e83b2fdd3176c1bbacb707d404394a66ecba5a42 /src/mongo/db/pipeline/expression_context.h | |
parent | 1053cf8347e7aeaca24d47039980c765dae75d5b (diff) | |
download | mongo-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.h | 3 |
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; |