Set 32k csum_block_size for HDD by default

This commit is contained in:
Vitaliy Filippov
2024-03-30 16:16:49 +03:00
parent 989675a780
commit 0b097ca3f2
4 changed files with 5 additions and 3 deletions
+2
View File
@@ -111,6 +111,8 @@ int disk_tool_t::prepare_one(std::map<std::string, std::string> options, int is_
options["block_size"] = "1M";
if (is_hybrid && options["throttle_small_writes"] == "")
options["throttle_small_writes"] = "1";
if (!is_hybrid && options.find("data_csum_type") != options.end() && options.at("data_csum_type") != "")
options["csum_block_size"] = "32k";
}
else if (!json_is_true(options["disable_data_fsync"]))
{