We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2069338 commit bf724efCopy full SHA for bf724ef
src/mongo/s/client_info.cpp
@@ -247,11 +247,12 @@ namespace mongo {
247
}
248
catch( std::exception &e ){
249
250
- // Safe to return here, since we haven't started any extra processing yet, just collecting
251
- // responses.
+ // Safe to return here, since we haven't started any extra processing yet, just collecting
+ // responses.
252
253
- warning() << "could not get last error from a shard " << theShard << causedBy( e ) << endl;
254
- conn->done();
+ warning() << "could not get last error from a shard " << theShard << causedBy( e ) << endl;
+ if (conn)
255
+ conn->done();
256
257
return false;
258
0 commit comments