TSG-2071 管控策略引用subid无法命中
*限流静态库更新 *Ip归属地日志格式修改 *Maat增加Deffered开关
This commit is contained in:
@@ -339,7 +339,7 @@ static Maat_feather_t maat_feather_create_with_override(const char * instance_na
|
||||
char redis_port_range[TFE_STRING_MAX] = {0};
|
||||
char accept_tags[TFE_STRING_MAX] = {0};
|
||||
int redis_port_begin = 0, redis_port_end = 0;
|
||||
int redis_port_select = 0;
|
||||
int redis_port_select = 0, deferred_load_on=0;
|
||||
int redis_db_idx = 0;
|
||||
|
||||
char json_cfg_file[TFE_STRING_MAX] = {0};
|
||||
@@ -354,6 +354,7 @@ static Maat_feather_t maat_feather_create_with_override(const char * instance_na
|
||||
MESA_load_profile_string_def(profile, section, "maat_redis_server", redis_server, sizeof(redis_server), "");
|
||||
MESA_load_profile_string_def(profile, section, "maat_redis_port_range", redis_port_range, sizeof(redis_server),
|
||||
"6379");
|
||||
MESA_load_profile_int_def(profile, section, "deferred_load_on", &(deferred_load_on), 0);
|
||||
|
||||
ret = sscanf(redis_port_range, "%d-%d", &redis_port_begin, &redis_port_end);
|
||||
if (ret == 1)
|
||||
@@ -414,6 +415,7 @@ static Maat_feather_t maat_feather_create_with_override(const char * instance_na
|
||||
}
|
||||
}
|
||||
|
||||
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_tags) > 0)
|
||||
|
||||
Reference in New Issue
Block a user