diff options
author | Benety Goh <benety@mongodb.com> | 2017-03-31 13:34:22 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-03-31 15:01:11 -0400 |
commit | 1b012113fce67b22808097b9c2261317bb915093 (patch) | |
tree | 1b51ca099b54c2f6a8d188b7e62731083e1a1d23 | |
parent | 5cb4dd07c37457af7b88e0d371c136569e911b4d (diff) | |
download | mongo-1b012113fce67b22808097b9c2261317bb915093.tar.gz |
SERVER-28482 backup_restore.js should run ReplSetTest.awaitSecondaryNodes before calling fsync on secondary
-rw-r--r-- | jstests/noPassthrough/libs/backup_restore.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/noPassthrough/libs/backup_restore.js b/jstests/noPassthrough/libs/backup_restore.js index e66f0f8af97..29380a1ef05 100644 --- a/jstests/noPassthrough/libs/backup_restore.js +++ b/jstests/noPassthrough/libs/backup_restore.js @@ -257,6 +257,7 @@ var BackupRestoreTest = function(options) { // Perform the data backup to new secondary if (options.backup == 'fsyncLock') { + rst.awaitSecondaryNodes(); // Test that the secondary supports fsyncLock var ret = secondary.getDB("admin").fsyncLock(); if (!ret.ok) { |