From 40b618f2349b509eabdd175f75faf7ce84cf0696 Mon Sep 17 00:00:00 2001 From: akankshamahajan Date: Tue, 3 Oct 2023 14:41:26 -0700 Subject: [PATCH] Enable auto_readahead_size in db_stress (#11916) Summary: Depends on https://github.com/facebook/rocksdb/pull/11884 This PR only enables the option in db_stress. Pull Request resolved: https://github.com/facebook/rocksdb/pull/11916 Reviewed By: anand1976 Differential Revision: D49834479 Pulled By: akankshamahajan15 fbshipit-source-id: 103a64fd7b23236493a8f3064d4c5af83656bd18 --- tools/db_crashtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index 8b5d29d086..7b2ce96a1d 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -217,7 +217,7 @@ default_params = { "memtable_max_range_deletions": lambda: random.choice([0] * 6 + [100, 1000]), # 0 (disable) is the default and more commonly used value. "bottommost_file_compaction_delay": lambda: random.choice([0, 0, 0, 600, 3600, 86400]), - "auto_readahead_size" : 0, + "auto_readahead_size" : lambda: random.choice([0, 1]), } _TEST_DIR_ENV_VAR = "TEST_TMPDIR"