修改maat_json笔误,修复redis busy时reply没有释放的bug。
This commit is contained in:
@@ -368,6 +368,8 @@ int get_rm_key_list(unsigned int version,redisContext *c,struct serial_rule_t**
|
||||
if(reply->type==REDIS_REPLY_NIL||reply->type==REDIS_REPLY_ERROR)
|
||||
{
|
||||
MESA_handle_runtime_log(logger, RLOG_LV_FATAL, maat_redis_monitor,"GET MAAT_VERSION failed, maybe Redis is busy.");
|
||||
freeReplyObject(reply);
|
||||
reply=NULL;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -676,8 +676,10 @@ int write_compile_rule(cJSON *compile,struct iris_description_t *p_iris,void * l
|
||||
compile_cmd[cmd_cnt].json_type=cJSON_Number;
|
||||
cmd_cnt++;
|
||||
|
||||
compile_cmd[cmd_cnt].json_string="effective_rage";
|
||||
compile_cmd[cmd_cnt].json_string="effective_range";
|
||||
compile_cmd[cmd_cnt].json_type=cJSON_Number;
|
||||
compile_cmd[cmd_cnt].empty_allowed=1;
|
||||
compile_cmd[cmd_cnt].default_int=0;
|
||||
cmd_cnt++;
|
||||
|
||||
compile_cmd[cmd_cnt].json_string="user_region";
|
||||
|
||||
Reference in New Issue
Block a user