summaryrefslogtreecommitdiff
path: root/jstests/replsets/interrupted_batch_insert.js
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-07-30 09:33:19 -0400
committerMathew Robinson <chasinglogic@gmail.com>2019-08-12 17:28:18 -0400
commitef9f9b461e1fb9ef92f5450ff0a4dcbed68afc42 (patch)
tree72269f0d666e7a0f93de9b72ae38bd857b45672a /jstests/replsets/interrupted_batch_insert.js
parentb2e2c0fb3aba4228cac47aff35786dc7b386f46c (diff)
downloadmongo-ef9f9b461e1fb9ef92f5450ff0a4dcbed68afc42.tar.gz
SERVER-41177 Remove Javascript ScopedThread class
Diffstat (limited to 'jstests/replsets/interrupted_batch_insert.js')
-rw-r--r--jstests/replsets/interrupted_batch_insert.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/interrupted_batch_insert.js b/jstests/replsets/interrupted_batch_insert.js
index 698e157f064..d8b6419398b 100644
--- a/jstests/replsets/interrupted_batch_insert.js
+++ b/jstests/replsets/interrupted_batch_insert.js
@@ -48,7 +48,7 @@ assert.commandWorked(primary.getDB("db").adminCommand(
// In a background thread, issue an insert command to the primary that will insert 10 batches of
// documents.
-var worker = new ScopedThread((host, collName, numToInsert) => {
+var worker = new Thread((host, collName, numToInsert) => {
// Insert elements [{idx: 0}, {idx: 1}, ..., {idx: numToInsert - 1}].
const docsToInsert = Array.from({length: numToInsert}, (_, i) => {
return {idx: i};