diff options
Diffstat (limited to 'src/mongo/db/matcher')
-rw-r--r-- | src/mongo/db/matcher/expression_parser_text.cpp | 1 | ||||
-rw-r--r-- | src/mongo/db/matcher/expression_where.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/expression_parser_text.cpp b/src/mongo/db/matcher/expression_parser_text.cpp index 156442e4d16..3b2b6bd6ea0 100644 --- a/src/mongo/db/matcher/expression_parser_text.cpp +++ b/src/mongo/db/matcher/expression_parser_text.cpp @@ -29,7 +29,6 @@ */ #include "mongo/base/init.h" -#include "mongo/db/client.h" #include "mongo/db/fts/fts_language.h" #include "mongo/db/jsobj.h" #include "mongo/db/matcher/expression_parser.h" diff --git a/src/mongo/db/matcher/expression_where.cpp b/src/mongo/db/matcher/expression_where.cpp index 6a1bad81c91..8f02a748467 100644 --- a/src/mongo/db/matcher/expression_where.cpp +++ b/src/mongo/db/matcher/expression_where.cpp @@ -161,7 +161,8 @@ namespace mongo { Client::Context* context = cc().getContext(); if ( !context ) - return StatusWithMatchExpression( ErrorCodes::BadValue, "no context in $where parsing" ); + return StatusWithMatchExpression( ErrorCodes::NoClientContext, + "no context in $where parsing" ); const char* ns = context->ns(); if ( !ns ) |