0
0
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:
Eliot Horowitz 2010-03-06 22:13:36 -05:00
commit aad72885f7

View File

@ -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 )