summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-03-30 13:53:35 -0400
committerRamon Fernandez <ramon.fernandez@mongodb.com>2015-04-10 14:57:38 -0400
commit03d7d9d46179425212ce1840c58c4325d450b950 (patch)
treed1cc19ab8fb2587218807452d83ff258e3dd94ca
parentd00d2bc873ebeca1536f578d8a5255e4f776aad3 (diff)
downloadmongo-03d7d9d46179425212ce1840c58c4325d450b950.tar.gz
SERVER-17487 Throttle bg insert thread in test
(cherry picked from commit 06f4ea80a51ccea8da275e095cc5061707263957)
-rw-r--r--jstests/noPassthrough/initial_sync_cloner_dups.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/noPassthrough/initial_sync_cloner_dups.js b/jstests/noPassthrough/initial_sync_cloner_dups.js
index f7d4c43c9c9..f6a4a487cbc 100644
--- a/jstests/noPassthrough/initial_sync_cloner_dups.js
+++ b/jstests/noPassthrough/initial_sync_cloner_dups.js
@@ -61,6 +61,9 @@ var insertAndRemove = function(host) {
//print(id);
coll.remove({_id: id});
coll.insert({_id: id});
+
+ // Try to throttle this thread to prevent overloading slow machines.
+ sleep(1);
}
jsTestLog("finished bg writes on " + host);