summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Mir <ali.mir@mongodb.com>2021-03-15 22:03:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-16 13:49:23 +0000
commitb4c795bf9ebac10a9f013a548c980768b0238cb0 (patch)
treea2dd2541e8005de76795ed09e01a8891f65aec90
parenta0b2454ff310c14bc1846921907775aef740868a (diff)
downloadmongo-b4c795bf9ebac10a9f013a548c980768b0238cb0.tar.gz
SERVER-55189 Call awaitReplication() before returning from syncFrom() in rslib.js
-rw-r--r--jstests/replsets/rslib.js1
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();
};
/**