Skip to content

Commit 55ae709

Browse files
committed
SERVER-18087 fixed checking of createIndexes progress in index_retry.js and index_no_retry.js
1 parent d03a9b6 commit 55ae709

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jstests/noPassthroughWithMongod/index_no_retry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
if ( "a_1" == idxSpec.name &&
5252
1 == idxSpec.key.a &&
5353
idxSpec.background &&
54+
op.progress &&
5455
(op.progress.done / op.progress.total) > 0.20) {
5556
indexBuildOpId = op.opid;
5657
}

jstests/noPassthroughWithMongod/index_retry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
if ( "a_1" == idxSpec.name &&
5252
1 == idxSpec.key.a &&
5353
idxSpec.background &&
54+
op.progress &&
5455
(op.progress.done / op.progress.total) > 0.20) {
5556
indexBuildOpId = op.opid;
5657
}

0 commit comments

Comments
 (0)