Commit 3c8861a7 authored by antirez's avatar antirez
Browse files

Support for CLIENT KILL TYPE MASTER.

parent e6f39338
......@@ -1410,9 +1410,7 @@ void clientCommand(client *c) {
while ((ln = listNext(&li)) != NULL) {
client = listNodeValue(ln);
if (addr && strcmp(getClientPeerId(client),addr) != 0) continue;
if (type != -1 &&
(client->flags & CLIENT_MASTER ||
getClientType(client) != type)) continue;
if (type != -1 && getClientType(client) != type) continue;
if (id != 0 && client->id != id) continue;
if (c == client && skipme) continue;
......
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