line 4 is wrong,executed wrong, the call stack below:
redisClustervAsyncCommand->redisClusterAsyncFormattedCommand->command_format_by_slot->redis_parse_cmd->case 9
When the code is executed here, it goes wrong.
beacuse in func "redis_parse_cmd " case 9 ,there is no key-work subsribe .
anybody can help me ?
case 9:
if (str9icmp(m, 'p', 'e', 'x', 'p', 'i', 'r', 'e', 'a', 't')) {
r->type = CMD_REQ_REDIS_PEXPIREAT;
break;
}
1、redisClusterLibeventAttach(c,base); 2、redisClusterAsyncSetConnectCallback(c,connect_callback); 3、redisClusterAsyncSetDisconnectCallback(c,disconnect_callback); 4、redisClusterAsyncCommand(c, sub_callback, (char*) "xushan", "SUBSCRIBE abcd");
line 4 is wrong,executed wrong, the call stack below: redisClustervAsyncCommand->redisClusterAsyncFormattedCommand->command_format_by_slot->redis_parse_cmd->case 9 When the code is executed here, it goes wrong. beacuse in func "redis_parse_cmd " case 9 ,there is no key-work subsribe .
anybody can help me ?
case 9: if (str9icmp(m, 'p', 'e', 'x', 'p', 'i', 'r', 'e', 'a', 't')) { r->type = CMD_REQ_REDIS_PEXPIREAT; break; }