diff options
author | Aaron <aaron@10gen.com> | 2009-02-27 14:04:19 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-02-27 14:04:19 -0500 |
commit | 4427a23bc7ac9f3be4c2bcaac14db1df53f4513d (patch) | |
tree | ec04f1209018fd6414e2c355d1592d4a5678ac1b /db/matcher.h | |
parent | 6b73f79c2178b877735b80287ca3665fd76870c0 (diff) | |
download | mongo-4427a23bc7ac9f3be4c2bcaac14db1df53f4513d.tar.gz |
Ignore MinKey and MaxKey in matcher
Diffstat (limited to 'db/matcher.h')
-rw-r--r-- | db/matcher.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db/matcher.h b/db/matcher.h index 2c185c7f329..26ec78a6480 100644 --- a/db/matcher.h +++ b/db/matcher.h @@ -109,6 +109,9 @@ namespace mongo { private: void addBasic(BSONElement e, int c, BSONObj& indexKeyPattern) { + // TODO May want to selectively ignore these types based on op type. + if ( e.type() == MinKey || e.type() == MaxKey ) + return; BasicMatcher bm; bm.toMatch = e; bm.compareOp = c; |