修复redis_flush_DB函数中redis append操作,命令计数漏加的bug。
This commit is contained in:
@@ -1602,6 +1602,7 @@ int redis_flush_DB(redisContext* ctx, int db_index, void* logger)
|
||||
dbsize=read_redis_integer(data_reply);
|
||||
freeReplyObject(data_reply);
|
||||
|
||||
data_reply=_wrap_redisCommand(ctx,"MULTI");
|
||||
|
||||
redisAppendCommand(ctx,"FLUSHDB");
|
||||
append_cmd_cnt++;
|
||||
@@ -1611,7 +1612,7 @@ int redis_flush_DB(redisContext* ctx, int db_index, void* logger)
|
||||
append_cmd_cnt++;
|
||||
redisAppendCommand(ctx,"SET SEQUENCE_GROUP 1",maat_redis_version);
|
||||
append_cmd_cnt++;
|
||||
redisAppendCommand(ctx,"EXEC");
|
||||
redisAppendCommand(ctx,"EXEC");
|
||||
append_cmd_cnt++;
|
||||
for(i=0;i<append_cmd_cnt;i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user