summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/index_killop.js
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-06-24 13:55:21 -0400
committerAdam Midvidy <amidvidy@gmail.com>2015-06-24 15:50:30 -0400
commit313c3bdc2547f2746639e84f8668a756ad95d8f3 (patch)
treee4dac8ca389efb6cd401e03275d9e8c129cf735f /jstests/noPassthroughWithMongod/index_killop.js
parent2fe33e6040c5fdc998e369b33a6b2de8a8b01f15 (diff)
downloadmongo-313c3bdc2547f2746639e84f8668a756ad95d8f3.tar.gz
SERVER-19035 fix index_killop, index_no_retry & index_retry to work with OP_COMMAND
Diffstat (limited to 'jstests/noPassthroughWithMongod/index_killop.js')
-rw-r--r--jstests/noPassthroughWithMongod/index_killop.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/index_killop.js b/jstests/noPassthroughWithMongod/index_killop.js
index a755f042264..71e1cfc650b 100644
--- a/jstests/noPassthroughWithMongod/index_killop.js
+++ b/jstests/noPassthroughWithMongod/index_killop.js
@@ -24,7 +24,8 @@ function getIndexBuildOpId() {
// Identify the index build as the createIndex command
// It is assumed that no other clients are concurrently
// accessing the 'test' database.
- if ( op.op == 'query' && 'createIndexes' in op.query ) {
+ if ( (op.op == 'query' ||
+ op.op == 'command') && 'createIndexes' in op.query ) {
debug( op.opid );
indexBuildOpId = op.opid;
}