SCE适配MAAT变更,删除maat_options_set_rule_effect_interval_ms
This commit is contained in:
@@ -36,7 +36,6 @@ struct policy_config
|
||||
int perf_switch;
|
||||
int scan_detail;
|
||||
int deferred_load;
|
||||
int effect_interval_ms;
|
||||
|
||||
char data_center[EFFECTIVE_RANGE_MAX_SIZE];
|
||||
char device_group[EFFECTIVE_RANGE_MAX_SIZE];
|
||||
@@ -265,7 +264,6 @@ static void policy_enforcer_config(const char *profile, struct policy_config *co
|
||||
MESA_load_profile_int_def(profile, "MAAT", "perf_switch", &(config->perf_switch), 1);
|
||||
MESA_load_profile_int_def(profile, "MAAT", "scan_detail", &(config->scan_detail), 0);
|
||||
MESA_load_profile_int_def(profile, "MAAT", "deferred_load", &(config->deferred_load), 0);
|
||||
MESA_load_profile_int_def(profile, "MAAT", "effect_interval_ms", &(config->effect_interval_ms), 1000);
|
||||
|
||||
MESA_load_profile_string_def(profile, "MAAT", "stat_file", config->stat_file, sizeof(config->stat_file), "log/maat.fs2");
|
||||
MESA_load_profile_string_def(profile, "MAAT", "table_info", config->table_info, sizeof(config->table_info), "resource/table_info.conf");
|
||||
@@ -292,7 +290,6 @@ static void policy_enforcer_config(const char *profile, struct policy_config *co
|
||||
LOG_DEBUG("%s: MAAT->perf_switch : %d", LOG_TAG_POLICY, config->perf_switch);
|
||||
LOG_DEBUG("%s: MAAT->scan_detail : %d", LOG_TAG_POLICY, config->scan_detail);
|
||||
LOG_DEBUG("%s: MAAT->deferred_load : %d", LOG_TAG_POLICY, config->deferred_load);
|
||||
LOG_DEBUG("%s: MAAT->effect_interval_ms : %d", LOG_TAG_POLICY, config->effect_interval_ms);
|
||||
|
||||
LOG_DEBUG("%s: MAAT->stat_file : %s", LOG_TAG_POLICY, config->stat_file);
|
||||
LOG_DEBUG("%s: MAAT->table_info : %s", LOG_TAG_POLICY, config->table_info);
|
||||
@@ -1486,7 +1483,6 @@ struct policy_enforcer *policy_enforcer_create(const char *instance, const char
|
||||
maat_options_set_instance_name(opts, instance);
|
||||
maat_options_set_caller_thread_number(opts, thread_num);
|
||||
maat_options_set_foreign_cont_dir(opts, enforcer->config.foreign_cont_dir);
|
||||
maat_options_set_rule_effect_interval_ms(opts, enforcer->config.effect_interval_ms);
|
||||
// TODO set enforcer->config.scan_detail
|
||||
// Maat4 is not supported temporarily
|
||||
|
||||
|
||||
Reference in New Issue
Block a user