Skip to content

Commit

Permalink
matcher comment
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed May 2, 2011
1 parent ddd7dd3 commit 216f9ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/matcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ namespace mongo {
bool matchesWithSingleKeyIndex(const BSONObj &key, const DiskLoc &recLoc , MatchDetails * details = 0 ) {
return matches( key, recLoc, details, true );
}
/**
* This is the preferred method for matching against a cursor, as it
* can handle both multi and single key cursors.
*/
bool matchesCurrent( Cursor * cursor , MatchDetails * details = 0 );
bool needRecord() { return _needRecord; }

Expand Down

0 comments on commit 216f9ca

Please sign in to comment.