summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/matcher.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-05-21 22:56:51 -0400
committerEliot Horowitz <eliot@10gen.com>2013-05-22 16:51:00 -0400
commitcf9c3ea82f89136d98fe58fc9a68d0f62f501e20 (patch)
tree66cee8e5f8fda9381e65a9663cb87ec139d5406b /src/mongo/db/matcher/matcher.cpp
parentcd3548f66b33f019e5c42dbf02d96d4ccf839789 (diff)
downloadmongo-cf9c3ea82f89136d98fe58fc9a68d0f62f501e20.tar.gz
SERVER-9749: all is just semantic sugar for and
Diffstat (limited to 'src/mongo/db/matcher/matcher.cpp')
-rw-r--r--src/mongo/db/matcher/matcher.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/matcher.cpp b/src/mongo/db/matcher/matcher.cpp
index d9744c1fd47..cfd482d3b33 100644
--- a/src/mongo/db/matcher/matcher.cpp
+++ b/src/mongo/db/matcher/matcher.cpp
@@ -266,6 +266,9 @@ namespace mongo {
Matcher2::IndexSpliceInfo* spliceInfo ) {
switch ( full->matchType() ) {
+ case MatchExpression::ALWAYS_FALSE:
+ return new FalseMatchExpression();
+
case MatchExpression::NOT:
case MatchExpression::NOR:
// maybe?