diff options
author | Ali Mir <ali.mir@mongodb.com> | 2021-03-15 22:03:47 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-16 13:49:23 +0000 |
commit | b4c795bf9ebac10a9f013a548c980768b0238cb0 (patch) | |
tree | a2dd2541e8005de76795ed09e01a8891f65aec90 | |
parent | a0b2454ff310c14bc1846921907775aef740868a (diff) | |
download | mongo-b4c795bf9ebac10a9f013a548c980768b0238cb0.tar.gz |
SERVER-55189 Call awaitReplication() before returning from syncFrom() in rslib.js
-rw-r--r-- | jstests/replsets/rslib.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/replsets/rslib.js b/jstests/replsets/rslib.js index 93fc7c0e2ba..42d9ea73cce 100644 --- a/jstests/replsets/rslib.js +++ b/jstests/replsets/rslib.js @@ -65,6 +65,7 @@ syncFrom = function(syncingNode, desiredSyncSource, rst) { assert.commandWorked(syncingNode.adminCommand({replSetSyncFrom: desiredSyncSource.name})); restartServerReplication(syncingNode); rst.awaitSyncSource(syncingNode, desiredSyncSource); + rst.awaitReplication(); }; /** |