summaryrefslogtreecommitdiff
path: root/db/matcher.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-03-01 17:57:27 -0500
committerMathias Stearn <mathias@10gen.com>2010-03-01 19:53:43 -0500
commita72123ced13783728a9c8fbc4bafe3992f8b40d6 (patch)
treefd4b7c7af6bab102560c2aada6283ffff270ccb5 /db/matcher.h
parentdc54b5b6e058ec82ec6e0777ba6f90e3631ceebe (diff)
downloadmongo-a72123ced13783728a9c8fbc4bafe3992f8b40d6.tar.gz
better regex prefix matching
Diffstat (limited to 'db/matcher.h')
-rw-r--r--db/matcher.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/matcher.h b/db/matcher.h
index 9f779fdcb50..2959624b493 100644
--- a/db/matcher.h
+++ b/db/matcher.h
@@ -31,6 +31,7 @@ namespace mongo {
class RegexMatcher {
public:
const char *fieldName;
+ string prefix;
pcrecpp::RE *re;
bool isNot;
RegexMatcher() : re( 0 ), isNot() {}