Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3c8861a7
Commit
3c8861a7
authored
Jul 28, 2015
by
antirez
Browse files
Support for CLIENT KILL TYPE MASTER.
parent
e6f39338
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
3c8861a7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment