Implement parallel recovery

This commit is contained in:
Vitaliy Filippov
2020-04-04 19:23:12 +03:00
parent dfb6e15eaa
commit 6212195440
4 changed files with 154 additions and 105 deletions
+3
View File
@@ -103,6 +103,9 @@ void osd_t::parse_config(blockstore_config_t & config)
autosync_interval = strtoull(config["autosync_interval"].c_str(), NULL, 10);
if (autosync_interval < 0 || autosync_interval > MAX_AUTOSYNC_INTERVAL)
autosync_interval = DEFAULT_AUTOSYNC_INTERVAL;
recovery_queue_depth = strtoull(config["recovery_queue_depth"].c_str(), NULL, 10);
if (recovery_queue_depth < 1 || recovery_queue_depth > MAX_RECOVERY_QUEUE)
recovery_queue_depth = DEFAULT_RECOVERY_QUEUE;
}
void osd_t::bind_socket()