Commit ac6b656f authored by antirez's avatar antirez
Browse files

Old form of CLIENT KILL should still allow suicide.

parent 32ebb3e6
...@@ -1335,6 +1335,7 @@ void clientCommand(redisClient *c) { ...@@ -1335,6 +1335,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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment