summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/replsets/reconstruct_prepared_transactions_initial_sync.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js b/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js
index b72dd806295..7afb8416c05 100644
--- a/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js
+++ b/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js
@@ -126,6 +126,8 @@ assert.commandWorked(secondary.adminCommand(
// Wait for the secondary to complete initial sync.
replTest.awaitSecondaryNodes();
+// Wait for the commit point to advance past the "prepare" oplog entry for transaction four.
+replTest.awaitLastOpCommitted();
jsTestLog("Initial sync completed");