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-04-02 18:14:59 +0000
commit54e29d8dcca0b3d73898a384b57c516728edbcd2 (patch)
tree0ea2433a0415fd8d1290e2363e5e1c1b47c54ef9
parent236851ab2a1221e76dc8662e7ab4ba80ae0e7116 (diff)
downloadmongo-54e29d8dcca0b3d73898a384b57c516728edbcd2.tar.gz
SERVER-55189 Call awaitReplication() before returning from syncFrom() in rslib.js
(cherry picked from commit b4c795bf9ebac10a9f013a548c980768b0238cb0)
-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 6f397b08ca4..4321e3c049b 100644
--- a/jstests/replsets/rslib.js
+++ b/jstests/replsets/rslib.js
@@ -56,6 +56,7 @@ syncFrom = function(syncingNode, desiredSyncSource, rst) {
assert.commandWorked(syncingNode.adminCommand({replSetSyncFrom: desiredSyncSource.name}));
restartServerReplication(syncingNode);
rst.awaitSyncSource(syncingNode, desiredSyncSource);
+ rst.awaitReplication();
};
/**