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:
commit
10d5a55c35
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user