summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-03-31 14:59:58 -0400
committerAaron <aaron@10gen.com>2009-03-31 14:59:58 -0400
commit2821a57dcb27dc6ad1a23dd61b8c81f94670cdb2 (patch)
tree6be3256cb24d9c933094dcc50ad1c35424d24d8c
parentcec6d1af97b81d906b31edefda8a2c16b4bb32d7 (diff)
downloadmongo-2821a57dcb27dc6ad1a23dd61b8c81f94670cdb2.tar.gz
sleep to allow os to recover resources of killed process
-rw-r--r--jstests/repl/repl7.js3
-rw-r--r--shell/ShellUtils.cpp1
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 ) {