diff options
Diffstat (limited to 'jstests/noPassthrough/libs/index_build.js')
-rw-r--r-- | jstests/noPassthrough/libs/index_build.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/jstests/noPassthrough/libs/index_build.js b/jstests/noPassthrough/libs/index_build.js deleted file mode 100644 index 3bb78889055..00000000000 --- a/jstests/noPassthrough/libs/index_build.js +++ /dev/null @@ -1,13 +0,0 @@ -// Returns the op id for the running index build, or -1 if there is no current index build. -function getIndexBuildOpId(db) { - const result = db.currentOp(); - assert.commandWorked(result); - let indexBuildOpId = -1; - - result.inprog.forEach(function(op) { - if (op.op == 'command' && 'createIndexes' in op.command) { - indexBuildOpId = op.opid; - } - }); - return indexBuildOpId; -} |