diff options
author | George Wangensteen <george.wangensteen@mongodb.com> | 2020-11-20 18:38:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-17 21:00:03 +0000 |
commit | 73f48c8115a5792a20d85f343207772bd6d316da (patch) | |
tree | 5a188282495a9930db078b8e893ccb62b4a20380 | |
parent | e900aa20672f234c5f5d1522e29348de5edf8fcb (diff) | |
download | mongo-73f48c8115a5792a20d85f343207772bd6d316da.tar.gz |
SERVER-52884 Remove race in reconstruct_prepared_transactions_initial_sync.js
-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"); |