diff options
Diffstat (limited to 'jstests/replsets/non_transaction_snapshot_reads.js')
-rw-r--r-- | jstests/replsets/non_transaction_snapshot_reads.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/non_transaction_snapshot_reads.js b/jstests/replsets/non_transaction_snapshot_reads.js index ed4dc19a164..b3dd5db621c 100644 --- a/jstests/replsets/non_transaction_snapshot_reads.js +++ b/jstests/replsets/non_transaction_snapshot_reads.js @@ -11,9 +11,9 @@ load("jstests/libs/global_snapshot_reads_util.js"); -// TODO(SERVER-47672): Use minSnapshotHistoryWindowInSeconds instead. const options = { - setParameter: {maxTargetSnapshotHistoryWindowInSeconds: 600} + // Set a large snapshot window of 10 minutes for the test. + setParameter: {minSnapshotHistoryWindowInSeconds: 600} }; const replSet = new ReplSetTest({nodes: 3, nodeOptions: options}); replSet.startSet(); @@ -30,7 +30,7 @@ snapshotReadsTest({ } }); -// Ensure "atClusterTime" is omitted from a regular (non-snapshot) reads. +// Ensure "atClusterTime" is omitted from a regular (non-snapshot) read. primaryDB["collection"].insertOne({}); const cursor = assert.commandWorked(primaryDB.runCommand({find: "test"})).cursor; assert(!cursor.hasOwnProperty("atClusterTime")); |