Skip to content

Commit

Permalink
SERVER-322 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed Mar 9, 2010
1 parent 406ed2d commit 6820535
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions db/matcher.cpp
Expand Up @@ -125,13 +125,11 @@ namespace mongo {
rm.fieldName = 0; // no need for field name
rm.regex = ie.regex();
rm.flags = ie.regexFlags();
rm.isNot = false; // what about $nin?
if (!false){ //TODO something smarter
bool purePrefix;
string prefix = simpleRegex(rm.regex, rm.flags, &purePrefix);
if (purePrefix)
rm.prefix = prefix;
}
rm.isNot = false;
bool purePrefix;
string prefix = simpleRegex(rm.regex, rm.flags, &purePrefix);
if (purePrefix)
rm.prefix = prefix;
} else {
myset->insert(ie);
}
Expand Down

0 comments on commit 6820535

Please sign in to comment.