TSG-3301 修复 TFE 通过配置文件设置 [maat] deferred_load_on 选项不生效的 bug

This commit is contained in:
luwenpeng
2020-09-17 11:27:15 +08:00
parent 8c439fdbea
commit 2bcbfaf2a0

View File

@@ -128,7 +128,10 @@ static Maat_feather_t create_maat_feather(const char *instance_name, const char
}
}
Maat_set_feather_opt(target, MAAT_OPT_DEFERRED_LOAD, &deferred_load_on, sizeof(deferred_load_on));
if (deferred_load_on)
{
Maat_set_feather_opt(target, MAAT_OPT_DEFERRED_LOAD, &deferred_load_on, sizeof(deferred_load_on));
}
Maat_set_feather_opt(target, MAAT_OPT_EFFECT_INVERVAL_MS, &effect_interval, sizeof(effect_interval));
Maat_set_feather_opt(target, MAAT_OPT_SCAN_DETAIL, &scan_detail, sizeof(scan_detail));
if (strlen(accept_path) > 0)