From 6820535ea7661e9e7cd49ef7e1edcbc050f0f1bf Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 9 Mar 2010 10:36:10 -0800 Subject: [PATCH] SERVER-322 cleanup --- db/matcher.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/db/matcher.cpp b/db/matcher.cpp index 8c82d1bc2346a..f78c964b638f4 100644 --- a/db/matcher.cpp +++ b/db/matcher.cpp @@ -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); }