diff options
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r-- | jstests/noPassthrough/dbcheck_no_history_on_secondary.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/noPassthrough/dbcheck_no_history_on_secondary.js b/jstests/noPassthrough/dbcheck_no_history_on_secondary.js index 1c94ab416eb..a60992e0b08 100644 --- a/jstests/noPassthrough/dbcheck_no_history_on_secondary.js +++ b/jstests/noPassthrough/dbcheck_no_history_on_secondary.js @@ -43,6 +43,9 @@ const fp = configureFailPoint(primary, 'SleepDbCheckInBatch', {sleepMs: sleepMs} // Returns immediately and starts a background task. assert.commandWorked(testDB.getSiblingDB('test').runCommand({dbCheck: 1})); +// Wait for dbCheck hasher to acquire snapshot. +fp.wait(); + // Write some data to advance the durable timestamp while we're waiting for dbCheck to run. docs = []; for (let i = 0; i < 100; i++) { |