return 0 instead of throwing getMoreWaitException
This commit is contained in:
@@ -526,7 +526,13 @@ namespace mongo {
|
||||
Client::Context ctx(ns);
|
||||
msgdata = processGetMore(ns, ntoreturn, cursorid, curop, pass, exhaust);
|
||||
}
|
||||
catch ( GetMoreWaitException& ) {
|
||||
catch ( AssertionException& e ) {
|
||||
exhaust = false;
|
||||
curop.debug().exceptionInfo = e.getInfo();
|
||||
msgdata = emptyMoreResult(cursorid);
|
||||
ok = false;
|
||||
}
|
||||
if (msgdata == 0) {
|
||||
exhaust = false;
|
||||
massert(13073, "shutting down", !inShutdown() );
|
||||
if( pass == 0 ) {
|
||||
@@ -547,12 +553,6 @@ namespace mongo {
|
||||
sleepmillis(2);
|
||||
continue;
|
||||
}
|
||||
catch ( AssertionException& e ) {
|
||||
exhaust = false;
|
||||
curop.debug().exceptionInfo = e.getInfo();
|
||||
msgdata = emptyMoreResult(cursorid);
|
||||
ok = false;
|
||||
}
|
||||
break;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user