diff options
author | Eric Cox <eric.cox@mongodb.com> | 2020-07-07 15:18:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-24 20:19:03 +0000 |
commit | b9515a079627f792c910c8ed2bb683cc9b071ebd (patch) | |
tree | ba4f826742cedb7aa5bda6f3dbd41ae09136261e /src/mongo/db/pipeline/expression_context.cpp | |
parent | f69521a0ec5a98e91a38077704b3bdca8377ebb6 (diff) | |
download | mongo-b9515a079627f792c910c8ed2bb683cc9b071ebd.tar.gz |
SERVER-49122 Implement dateFromParts expression for date manipulation in SBE
Diffstat (limited to 'src/mongo/db/pipeline/expression_context.cpp')
-rw-r--r-- | src/mongo/db/pipeline/expression_context.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/expression_context.cpp b/src/mongo/db/pipeline/expression_context.cpp index bc5b3d26608..30bb664f28b 100644 --- a/src/mongo/db/pipeline/expression_context.cpp +++ b/src/mongo/db/pipeline/expression_context.cpp @@ -100,9 +100,7 @@ ExpressionContext::ExpressionContext( uuid(std::move(collUUID)), opCtx(opCtx), mongoProcessInterface(mongoProcessInterface), - timeZoneDatabase(opCtx && opCtx->getServiceContext() - ? TimeZoneDatabase::get(opCtx->getServiceContext()) - : nullptr), + timeZoneDatabase(getTimeZoneDatabase(opCtx)), variablesParseState(variables.useIdGenerator()), mayDbProfile(mayDbProfile), _collator(std::move(collator)), |