summaryrefslogtreecommitdiff
path: root/db/matcher.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-02-19 16:11:55 -0500
committerEliot Horowitz <eliot@10gen.com>2010-02-19 16:11:55 -0500
commitad92a65350c117a42d1b3a3b49a8878903d09468 (patch)
tree24873fd79cd49cad312454e5f2772fd57ef29cf4 /db/matcher.h
parent8e311b0094ea53e289b57b88c9183801e9626af2 (diff)
downloadmongo-ad92a65350c117a42d1b3a3b49a8878903d09468.tar.gz
$elemMatch with $all - doesn't work nicely with query optimizer yet SERVER-562
Diffstat (limited to 'db/matcher.h')
-rw-r--r--db/matcher.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/db/matcher.h b/db/matcher.h
index b16ea2f0648..81730b1ab90 100644
--- a/db/matcher.h
+++ b/db/matcher.h
@@ -60,16 +60,7 @@ namespace mongo {
ElementMatcher( BSONElement _e , int _op );
- ElementMatcher( BSONElement _e , int _op , const BSONObj& array ) : toMatch( _e ) , compareOp( _op ) {
-
- myset.reset( new set<BSONElement,element_lt>() );
-
- BSONObjIterator i( array );
- while ( i.more() ) {
- BSONElement ie = i.next();
- myset->insert(ie);
- }
- }
+ ElementMatcher( BSONElement _e , int _op , const BSONObj& array );
~ElementMatcher() { }
@@ -83,6 +74,8 @@ namespace mongo {
BSONType type;
shared_ptr<Matcher> subMatcher;
+
+ vector< shared_ptr<Matcher> > allMatchers;
};
class Where; // used for $where javascript eval