diff --git a/shell/ShellUtils.cpp b/shell/ShellUtils.cpp index 740a539c296..d78a877f8ef 100644 --- a/shell/ShellUtils.cpp +++ b/shell/ShellUtils.cpp @@ -389,7 +389,10 @@ public: argv_[ args.Length() ] = 0; assert( port_ > 0 ); - assert( dbs.count( port_ ) == 0 ); + if ( dbs.count( port_ ) != 0 ){ + cerr << "count for port: " << port_ << " is not 0 is: " << dbs.count( port_ ) << endl; + assert( dbs.count( port_ ) == 0 ); + } } void start() { diff --git a/shell/servers.js b/shell/servers.js index 54150a8c262..0d8cd5e1d1f 100644 --- a/shell/servers.js +++ b/shell/servers.js @@ -155,7 +155,9 @@ ShardingTest.prototype.getOther = function( one ){ } ShardingTest.prototype.stop = function(){ - stopMongoProgram( 39999 ); + for ( var i=0; i