Do not flush or recover in readonly mode

This commit is contained in:
Vitaliy Filippov
2020-04-11 12:06:18 +03:00
parent dd02bc1c44
commit d11e8dcb5e
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -106,6 +106,8 @@ void osd_t::parse_config(blockstore_config_t & config)
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;
if (config["readonly"] == "true" || config["readonly"] == "1" || config["readonly"] == "yes")
readonly = true;
}
void osd_t::bind_socket()