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:
parent
41d92fdeaf
commit
f528f30c4f
@ -766,6 +766,8 @@ namespace mongo {
|
||||
}
|
||||
if ( !connector->call( toSend, *m, false ) )
|
||||
return false;
|
||||
if ( ! m->data )
|
||||
return false;
|
||||
dataReceived();
|
||||
return true;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user