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

try to prevent shutdown stack trace

This commit is contained in:
Eliot Horowitz 2010-03-07 14:05:12 -05:00
parent 09054bb579
commit 7f75c1b5f7

View File

@ -80,7 +80,7 @@ void intr( int sig ){
#if !defined(_WIN32)
void killOps() {
if ( mongo::shellUtils::_nokillop )
if ( mongo::shellUtils::_nokillop || mongo::shellUtils::_allMyUris.size() == 0 )
return;
vector< string > uris;
for( map< const void*, string >::iterator i = mongo::shellUtils::_allMyUris.begin(); i != mongo::shellUtils::_allMyUris.end(); ++i )