Some config parsing fixes

This commit is contained in:
Vitaliy Filippov
2021-05-01 00:20:01 +03:00
parent 6810e93c3f
commit 818ae5d61d
4 changed files with 8 additions and 5 deletions
+2
View File
@@ -112,6 +112,8 @@ void osd_t::parse_config(const json11::Json & config)
immediate_commit = IMMEDIATE_ALL;
else if (config["immediate_commit"] == "small")
immediate_commit = IMMEDIATE_SMALL;
else
immediate_commit = IMMEDIATE_NONE;
if (!config["autosync_interval"].is_null())
{
// Allow to set it to 0