summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/matcher.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-05-08 11:30:10 -0400
committerEliot Horowitz <eliot@10gen.com>2013-05-09 10:16:55 -0400
commit1cd527fc703a8a568990f84585973c3e9e292075 (patch)
tree24917d19cdc0e42591bb56b0963679ff85304b37 /src/mongo/db/matcher/matcher.cpp
parent82052a817a3690e0ef5419c46c82845c5334998a (diff)
downloadmongo-1cd527fc703a8a568990f84585973c3e9e292075.tar.gz
SERVER-6400: cleaning api for performance
Diffstat (limited to 'src/mongo/db/matcher/matcher.cpp')
-rw-r--r--src/mongo/db/matcher/matcher.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/matcher/matcher.cpp b/src/mongo/db/matcher/matcher.cpp
index 517a06ac422..6589e9bacd1 100644
--- a/src/mongo/db/matcher/matcher.cpp
+++ b/src/mongo/db/matcher/matcher.cpp
@@ -39,7 +39,7 @@ namespace mongo {
}
virtual BSONElement getFieldDottedOrArray( const FieldRef& path,
- int32_t* idxPath,
+ size_t* idxPath,
bool* inArray ) const;
virtual void getFieldsDotted( const StringData& name,
@@ -74,7 +74,7 @@ namespace mongo {
BSONElement IndexKeyMatchableDocument::getFieldDottedOrArray( const FieldRef& path,
- int32_t* idxPath,
+ size_t* idxPath,
bool* inArray ) const {
BSONElement res = _getElement( path );
if ( !res.eoo() ) {
@@ -262,7 +262,7 @@ namespace mongo {
case MatchExpression::MOD:
case MatchExpression::MATCH_IN: {
const LeafMatchExpression* lme = static_cast<const LeafMatchExpression*>( full );
- if ( !keys.count( lme->getPath().toString() ) )
+ if ( !keys.count( lme->path().toString() ) )
return NULL;
return lme->shallowClone();
}