0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

Merge branch 'master' of git.10gen.com:/data/gitroot/p

This commit is contained in:
Dwight 2009-02-09 12:53:04 -05:00
commit 10d5a55c35

View File

@ -50,6 +50,8 @@ namespace mongo {
void appendElementHandlingGtLt(BSONObjBuilder& b, BSONElement& e);
int matchDirection( const BSONObj &index, const BSONObj &sort ) {
if ( index.isEmpty() || sort.isEmpty() )
return 0;
int direction = 0;
BSONObjIterator i( index );
BSONObjIterator s( sort );