diff options
Diffstat (limited to 'jstests/hooks/run_check_repl_dbhash.js')
-rw-r--r-- | jstests/hooks/run_check_repl_dbhash.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/jstests/hooks/run_check_repl_dbhash.js b/jstests/hooks/run_check_repl_dbhash.js index 67c9b3c920f..51199aa6d06 100644 --- a/jstests/hooks/run_check_repl_dbhash.js +++ b/jstests/hooks/run_check_repl_dbhash.js @@ -6,9 +6,8 @@ load('jstests/libs/discover_topology.js'); // For Topology and DiscoverTopology. load('jstests/libs/parallelTester.js'); // For ScopedThread. - function checkReplicatedDataHashesThread(hosts, testData) { + function checkReplicatedDataHashesThread(hosts) { try { - TestData = testData; const excludedDBs = jsTest.options().excludedDBsFromDBHash; const rst = new ReplSetTest(hosts[0]); rst.checkReplicatedDataHashes(undefined, excludedDBs); @@ -56,8 +55,8 @@ const threads = []; try { if (topology.configsvr.nodes.length > 1) { - const thread = new ScopedThread( - checkReplicatedDataHashesThread, topology.configsvr.nodes, TestData); + const thread = + new ScopedThread(checkReplicatedDataHashesThread, topology.configsvr.nodes); threads.push(thread); thread.start(); } else { @@ -79,8 +78,7 @@ } if (shard.nodes.length > 1) { - const thread = - new ScopedThread(checkReplicatedDataHashesThread, shard.nodes, TestData); + const thread = new ScopedThread(checkReplicatedDataHashesThread, shard.nodes); threads.push(thread); thread.start(); } else { |