0
0
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:
Dwight 2010-03-01 17:10:06 -05:00
parent 119b5afae8
commit 4dd943379b

View File

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