Use default value instead of hard-coded 0 for compaction_readhead_size in db bench (#11831)

Summary:
**Context/Summary:**
It allows db bench reflect the default behavior of this option. For example, we recently changed its default value.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/11831

Test Plan: No code change

Reviewed By: cbi42

Differential Revision: D49253690

Pulled By: hx235

fbshipit-source-id: 445d4e54f62b4b538626e301a3014d2f00849d30
This commit is contained in:
Hui Xiao 2023-09-15 10:38:37 -07:00 committed by Facebook GitHub Bot
parent 3ebf10e0ac
commit b050751f76
1 changed files with 3 additions and 1 deletions

View File

@ -718,7 +718,9 @@ DEFINE_int32(file_opening_threads,
"If open_files is set to -1, this option set the number of "
"threads that will be used to open files during DB::Open()");
DEFINE_int32(compaction_readahead_size, 0, "Compaction readahead size");
DEFINE_int32(compaction_readahead_size,
ROCKSDB_NAMESPACE::Options().compaction_readahead_size,
"Compaction readahead size");
DEFINE_int32(log_readahead_size, 0, "WAL and manifest readahead size");