more diagnostic info for test case

This commit is contained in:
dwight
2011-01-19 22:19:48 -05:00
parent fce353f01c
commit f8754e701e
2 changed files with 9 additions and 3 deletions

View File

@@ -50,10 +50,16 @@ namespace mongo {
b.appendNum( cursorId );
toSend.setData( dbGetMore, b.buf(), b.len() );
}
if ( !connector->call( toSend, *m, false ) )
if ( !connector->call( toSend, *m, false ) ) {
// log msg temp?
log() << "DBClientCursor::init call() failed" << endl;
return false;
if ( m->empty() )
}
if ( m->empty() ) {
// log msg temp?
log() << "DBClientCursor::init message from call() was empty" << endl;
return false;
}
dataReceived();
return true;
}