diff options
-rw-r--r-- | jstests/replsets/reconstruct_prepared_transactions_initial_sync.js | 2 |
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 6257f066eab..8587935dd7e 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"); |