diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2019-03-29 15:17:02 -0400 |
---|---|---|
committer | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2019-04-01 18:17:40 -0400 |
commit | 75fa5cc276248362c0d6337a54ff38a0bac0b59b (patch) | |
tree | cd71f30b9894536e122d2d99771f63fcae41c428 /jstests/replsets/secondary_reads_timestamp_visibility.js | |
parent | 258f72a671492853501b551cd3135a6dbf5208d4 (diff) | |
download | mongo-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.js | 3 |
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); |