summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_leaf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_leaf.cpp')
-rw-r--r--src/mongo/db/matcher/expression_leaf.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/expression_leaf.cpp b/src/mongo/db/matcher/expression_leaf.cpp
index fdbf50c9922..6d1ee7723ae 100644
--- a/src/mongo/db/matcher/expression_leaf.cpp
+++ b/src/mongo/db/matcher/expression_leaf.cpp
@@ -22,7 +22,6 @@
#include "mongo/bson/bsonobj.h"
#include "mongo/bson/bsonmisc.h"
#include "mongo/db/field_ref.h"
-#include "mongo/db/matcher.h"
#include "mongo/db/matcher/expression_internal.h"
#include "mongo/util/log.h"
@@ -177,7 +176,7 @@ namespace mongo {
Status RegexExpression::init( const StringData& path, const StringData& regex, const StringData& options ) {
_path = path;
- if ( regex.size() > RegexMatcher::MaxPatternSize ) {
+ if ( regex.size() > MaxPatternSize ) {
return Status( ErrorCodes::BadValue, "Regular expression is too long" );
}