diff options
-rw-r--r-- | jstests/repl/repl7.js | 3 | ||||
-rw-r--r-- | shell/ShellUtils.cpp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/jstests/repl/repl7.js b/jstests/repl/repl7.js index 6d253f6900e..0e503ce842f 100644 --- a/jstests/repl/repl7.js +++ b/jstests/repl/repl7.js @@ -18,6 +18,9 @@ doTest = function( signal ) { } ); stopMongod( 27019, signal ); + + sleep( 4000 ); + s = startMongoProgram( "mongod", "--port", "27019", "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:27018" ); assert.soon( function() { diff --git a/shell/ShellUtils.cpp b/shell/ShellUtils.cpp index f2972dbf30a..6882ba71db3 100644 --- a/shell/ShellUtils.cpp +++ b/shell/ShellUtils.cpp @@ -484,6 +484,7 @@ void killDb( int port, int signal ) { close( dbs[ port ].second ); dbs.erase( port ); + sleepms( 1000 ); } v8::Handle< v8::Value > StopMongoProgram( const v8::Arguments &a ) { |