Skip to content

Commit

Permalink
Support for CLIENT KILL TYPE MASTER.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jul 28, 2015
1 parent e6f3933 commit 3c8861a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/networking.c
Expand Up @@ -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;

Expand Down

0 comments on commit 3c8861a

Please sign in to comment.