summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/indexbg_killop_secondary.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/indexbg_killop_secondary.js')
-rw-r--r--jstests/noPassthrough/indexbg_killop_secondary.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/jstests/noPassthrough/indexbg_killop_secondary.js b/jstests/noPassthrough/indexbg_killop_secondary.js
index 9499278c35f..3628243108f 100644
--- a/jstests/noPassthrough/indexbg_killop_secondary.js
+++ b/jstests/noPassthrough/indexbg_killop_secondary.js
@@ -39,7 +39,12 @@ const createIdx =
const secondaryDB = secondary.getDB(testDB.getName());
const opId = IndexBuildTest.waitForIndexBuildToStart(secondaryDB);
-IndexBuildTest.assertIndexBuildCurrentOpContents(secondaryDB, opId);
+IndexBuildTest.assertIndexBuildCurrentOpContents(secondaryDB, opId, (op) => {
+ jsTestLog('Inspecting db.currentOp() entry for index build: ' + tojson(op));
+ assert.eq('',
+ op.ns,
+ 'Unexpected ns field value in db.currentOp() result for index build: ' + tojson(op));
+});
// Kill the index build. This should have no effect.
assert.commandWorked(secondaryDB.killOp(opId));