1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-31 14:51:04 +00:00

Old form of CLIENT KILL should still allow suicide.

This commit is contained in:
antirez 2014-06-24 12:49:18 +02:00
parent e21e0ba3dc
commit 46319094db

@ -1362,6 +1362,7 @@ void clientCommand(redisClient *c) {
if (c->argc == 3) { if (c->argc == 3) {
/* Old style syntax: CLIENT KILL <addr> */ /* Old style syntax: CLIENT KILL <addr> */
addr = c->argv[2]->ptr; addr = c->argv[2]->ptr;
skipme = 0; /* With the old form, you can kill yourself. */
} else if (c->argc > 3) { } else if (c->argc > 3) {
int i = 2; /* Next option index. */ int i = 2; /* Next option index. */