mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
error checking in cmd
This commit is contained in:
parent
119b5afae8
commit
4dd943379b
@ -149,10 +149,6 @@ namespace mongo {
|
||||
setBit( pos , 1 );
|
||||
}
|
||||
|
||||
unsigned operator[]( const unsigned pos ) const {
|
||||
return _hash & geoBitSets.masks64[pos];
|
||||
}
|
||||
|
||||
void setBit( unsigned pos , bool one ){
|
||||
if ( one )
|
||||
_hash |= geoBitSets.masks64[pos];
|
||||
@ -1056,7 +1052,8 @@ namespace mongo {
|
||||
int numWanted = 100;
|
||||
if ( cmdObj["num"].isNumber() )
|
||||
numWanted = cmdObj["num"].numberInt();
|
||||
|
||||
|
||||
uassert(13046, "'near' param missing/invalid", cmdObj["near"].type() == String);
|
||||
const GeoHash n = g->_tohash( cmdObj["near"] );
|
||||
result.append( "near" , n.toString() );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user