mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
Merge branch 'master' of github.com:mongodb/mongo
This commit is contained in:
commit
aad72885f7
@ -1003,7 +1003,7 @@ namespace mongo {
|
||||
};
|
||||
|
||||
auto_ptr<Cursor> Geo2dType::newCursor( const BSONObj& query , const BSONObj& order , int numWanted ) const {
|
||||
uassert( 13045 , "can't specify order with geo search" , order.isEmpty() );
|
||||
uassert( 13045 , "can't specify order with geo $near search" , order.isEmpty() );
|
||||
if ( numWanted < 0 )
|
||||
numWanted = numWanted * -1;
|
||||
else if ( numWanted == 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user