0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

client fix for bad queries

This commit is contained in:
Eliot Horowitz 2010-04-09 14:32:24 -04:00
parent 41d92fdeaf
commit f528f30c4f
2 changed files with 3 additions and 1 deletions

View File

@ -766,6 +766,8 @@ namespace mongo {
}
if ( !connector->call( toSend, *m, false ) )
return false;
if ( ! m->data )
return false;
dataReceived();
return true;
}

View File

@ -526,7 +526,7 @@ namespace mongo {
BSONObj query = queryBuilder.obj();
auto_ptr<DBClientCursor> cursor = db.query( ns.c_str() , query, num , skip );
uassert( 13085 , "query failed for dbwebserver" , cursor.get() );
if ( one ) {
if ( cursor->more() ) {
BSONObj obj = cursor->next();