增加异常处理,修复#19

This commit is contained in:
zhengchao
2019-08-27 09:24:42 +08:00
parent 9e29df54f1
commit 9e0ae6f10d
3 changed files with 8 additions and 6 deletions

View File

@@ -2374,7 +2374,7 @@ int Maat_cmd_commit(Maat_feather_t feather)
int Maat_cmd_commit(Maat_feather_t feather)
{
_Maat_feather_t* _feather=(_Maat_feather_t*)feather;
int ret=-1, i=0;
int new_region_num=0,new_group_num=0;
int serial_rule_num=0,serial_rule_idx=0;
@@ -2386,7 +2386,7 @@ int Maat_cmd_commit(Maat_feather_t feather)
struct serial_rule_t* s_rule=NULL;
if(_feather->input_mode!=SOURCE_REDIS)
{
{
return ret;
}
if(_feather->cmd_q_cnt==0)
@@ -2414,7 +2414,6 @@ int Maat_cmd_commit(Maat_feather_t feather)
data_reply=_wrap_redisCommand(write_ctx,"INCRBY %s %d", mr_region_id_var, new_region_num);
if(data_reply->type!=REDIS_REPLY_INTEGER)
{
freeReplyObject(data_reply);
freeReplyObject(data_reply);
goto error_out;
}
@@ -2424,7 +2423,6 @@ int Maat_cmd_commit(Maat_feather_t feather)
data_reply=_wrap_redisCommand(write_ctx,"INCRBY %s %d", mr_group_id_var, new_group_num);
if(data_reply->type!=REDIS_REPLY_INTEGER)
{
freeReplyObject(data_reply);
freeReplyObject(data_reply);
goto error_out;
}