Allow to disable scrub_find_best

This commit is contained in:
Vitaliy Filippov
2023-05-21 12:33:38 +03:00
parent 5fd3208616
commit ce02f47de6
7 changed files with 106 additions and 6 deletions
+1
View File
@@ -218,6 +218,7 @@ void osd_t::parse_config(bool init)
scrub_queue_depth = config["scrub_queue_depth"].uint64_value();
if (scrub_queue_depth < 1 || scrub_queue_depth > MAX_RECOVERY_QUEUE)
scrub_queue_depth = 1;
scrub_find_best = !json_is_false(config["scrub_find_best"]);
scrub_ec_max_bruteforce = config["scrub_ec_max_bruteforce"].uint64_value();
if (scrub_ec_max_bruteforce < 1)
scrub_ec_max_bruteforce = 100;