summaryrefslogtreecommitdiff
path: root/jstests/replsets/secondary_reads_timestamp_visibility.js
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2019-03-29 15:17:02 -0400
committerVesselina Ratcheva <vesselina.ratcheva@10gen.com>2019-04-01 18:17:40 -0400
commit75fa5cc276248362c0d6337a54ff38a0bac0b59b (patch)
treecd71f30b9894536e122d2d99771f63fcae41c428 /jstests/replsets/secondary_reads_timestamp_visibility.js
parent258f72a671492853501b551cd3135a6dbf5208d4 (diff)
downloadmongo-75fa5cc276248362c0d6337a54ff38a0bac0b59b.tar.gz
SERVER-40316 Wait for index build to complete in secondary_reads_timestamp_visibility.js
Diffstat (limited to 'jstests/replsets/secondary_reads_timestamp_visibility.js')
-rw-r--r--jstests/replsets/secondary_reads_timestamp_visibility.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/secondary_reads_timestamp_visibility.js b/jstests/replsets/secondary_reads_timestamp_visibility.js
index 5fcb3c25f8c..b0d213f91f0 100644
--- a/jstests/replsets/secondary_reads_timestamp_visibility.js
+++ b/jstests/replsets/secondary_reads_timestamp_visibility.js
@@ -35,7 +35,8 @@
}
replSet.awaitLastOpCommitted();
- replSet.awaitReplication();
+ // This function includes a call to awaitReplication().
+ replSet.waitForAllIndexBuildsToFinish(primaryDB.getName(), collName);
// Sanity check.
assert.eq(secondaryDB.getCollection(collName).find({x: 0}).itcount(), 100);