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
23f4e9f0
Commit
23f4e9f0
authored
Jan 25, 2014
by
antirez
Browse files
Don't log MONITOR clients as disconnecting slaves.
parent
40377fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
23f4e9f0
...
@@ -667,7 +667,7 @@ void freeClient(redisClient *c) {
...
@@ -667,7 +667,7 @@ void freeClient(redisClient *c) {
}
}
/* Log link disconnection with slave */
/* Log link disconnection with slave */
if
(
c
->
flags
&
REDIS_SLAVE
)
{
if
(
(
c
->
flags
&
REDIS_SLAVE
)
&&
!
(
c
->
flags
&
REDIS_MONITOR
))
{
char
ip
[
REDIS_IP_STR_LEN
];
char
ip
[
REDIS_IP_STR_LEN
];
if
(
anetPeerToString
(
c
->
fd
,
ip
,
sizeof
(
ip
),
NULL
)
!=
-
1
)
{
if
(
anetPeerToString
(
c
->
fd
,
ip
,
sizeof
(
ip
),
NULL
)
!=
-
1
)
{
...
...
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