diff options
author | Eric Cox <eric.cox@mongodb.com> | 2020-01-21 20:31:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-13 14:58:45 +0000 |
commit | e289b78c61033674f6440d9ddc402b50903717ac (patch) | |
tree | f468a4ea2a6c68e3bbf3e23522926e05e4f92aa4 /src/mongo/db/commands/list_databases.cpp | |
parent | 173e12f195cf456c6f08d82131256d625c1f583f (diff) | |
download | mongo-e289b78c61033674f6440d9ddc402b50903717ac.tar.gz |
SERVER-45454 Desugar where to expr + function
Diffstat (limited to 'src/mongo/db/commands/list_databases.cpp')
-rw-r--r-- | src/mongo/db/commands/list_databases.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/commands/list_databases.cpp b/src/mongo/db/commands/list_databases.cpp index 2c34bb715c7..19ebc60b933 100644 --- a/src/mongo/db/commands/list_databases.cpp +++ b/src/mongo/db/commands/list_databases.cpp @@ -37,6 +37,7 @@ #include "mongo/db/concurrency/write_conflict_exception.h" #include "mongo/db/curop_failpoint_helpers.h" #include "mongo/db/matcher/expression.h" +#include "mongo/db/namespace_string.h" #include "mongo/db/operation_context.h" #include "mongo/db/service_context.h" #include "mongo/db/storage/storage_engine.h" @@ -123,7 +124,8 @@ public: // The collator is null because database metadata objects are compared using simple // binary comparison. const CollatorInterface* collator = nullptr; - boost::intrusive_ptr<ExpressionContext> expCtx(new ExpressionContext(opCtx, collator)); + boost::intrusive_ptr<ExpressionContext> expCtx( + new ExpressionContext(opCtx, collator, NamespaceString(dbname))); auto matcher = uassertStatusOK(MatchExpressionParser::parse(filterObj.get(), std::move(expCtx))); filter = std::move(matcher); |