Support for CLIENT KILL TYPE MASTER.

This commit is contained in:
antirez 2015-07-28 17:01:19 +02:00
parent e6f39338e6
commit 3c8861a73a

View File

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