diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-05-19 11:14:41 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-05-19 11:14:41 -0400 |
commit | 65c12e6fe156a6e64515a5a6b6ede6bccfb81ca7 (patch) | |
tree | 113b688701c0d8e1f36a1aa04f009636c9fefb08 /src/mongo/db/matcher/matcher.cpp | |
parent | f6fb00300c6994fbe79adfbd1b8a0a6cbe44710b (diff) | |
download | mongo-65c12e6fe156a6e64515a5a6b6ede6bccfb81ca7.tar.gz |
SERVER-6400: comments
Diffstat (limited to 'src/mongo/db/matcher/matcher.cpp')
-rw-r--r-- | src/mongo/db/matcher/matcher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/matcher.cpp b/src/mongo/db/matcher/matcher.cpp index ea9a3b6885a..d9744c1fd47 100644 --- a/src/mongo/db/matcher/matcher.cpp +++ b/src/mongo/db/matcher/matcher.cpp @@ -273,7 +273,6 @@ namespace mongo { case MatchExpression::OR: - case MatchExpression::AND: { auto_ptr<ListOfMatchExpression> dup; for ( unsigned i = 0; i < full->numChildren(); i++ ) { @@ -291,6 +290,8 @@ namespace mongo { if ( dup.get() ) { if ( full->matchType() == MatchExpression::OR && dup->numChildren() != full->numChildren() ) { + // TODO: I think this should actuall get a list of all the fields + // and make sure that's the same // with an $or, have to make sure its all or nothing return NULL; } |