summaryrefslogtreecommitdiff
path: root/src/networking.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-07-28 17:01:19 +0200
committerantirez <antirez@gmail.com>2015-07-28 17:01:19 +0200
commit3c8861a73af8a472053fc3c0b47452a2b6051d53 (patch)
tree2562de0f77ef14177b74dee770725d2abb87f867 /src/networking.c
parente6f39338e6464fb29f630120d8949b0d535e2e3f (diff)
downloadredis-3c8861a73af8a472053fc3c0b47452a2b6051d53.tar.gz
Support for CLIENT KILL TYPE MASTER.
Diffstat (limited to 'src/networking.c')
-rw-r--r--src/networking.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/networking.c b/src/networking.c
index 5634cf6fe..7a86bf80d 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -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;