diff options
author | Benety Goh <benety@mongodb.com> | 2015-04-16 14:29:53 -0400 |
---|---|---|
committer | Ramon Fernandez <ramon.fernandez@mongodb.com> | 2015-04-17 11:20:25 -0400 |
commit | 243ed75d01ce3909c5a2ae5acec15bd3761fe38a (patch) | |
tree | 38476397c3af890da3992878db49383ede1b93d0 | |
parent | 788d9084fc1e43a2710e3054b2ffee1574b8a479 (diff) | |
download | mongo-243ed75d01ce3909c5a2ae5acec15bd3761fe38a.tar.gz |
SERVER-18087 fixed checking of createIndexes progress in index_retry.js and index_no_retry.js
(cherry picked from commit 55ae7096d9b2b83996daf1de20df8f341294dc0d)
-rw-r--r-- | jstests/noPassthroughWithMongod/index_no_retry.js | 1 | ||||
-rw-r--r-- | jstests/noPassthroughWithMongod/index_retry.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/index_no_retry.js b/jstests/noPassthroughWithMongod/index_no_retry.js index 646fa70fd46..5b7aac4350f 100644 --- a/jstests/noPassthroughWithMongod/index_no_retry.js +++ b/jstests/noPassthroughWithMongod/index_no_retry.js @@ -51,6 +51,7 @@ if ( "a_1" == idxSpec.name && 1 == idxSpec.key.a && idxSpec.background && + op.progress && (op.progress.done / op.progress.total) > 0.20) { indexBuildOpId = op.opid; } diff --git a/jstests/noPassthroughWithMongod/index_retry.js b/jstests/noPassthroughWithMongod/index_retry.js index 1557335c135..1fbb645c418 100644 --- a/jstests/noPassthroughWithMongod/index_retry.js +++ b/jstests/noPassthroughWithMongod/index_retry.js @@ -51,6 +51,7 @@ if ( "a_1" == idxSpec.name && 1 == idxSpec.key.a && idxSpec.background && + op.progress && (op.progress.done / op.progress.total) > 0.20) { indexBuildOpId = op.opid; } |