Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ecfefde7
Commit
ecfefde7
authored
Jan 25, 2014
by
antirez
Browse files
Don't log MONITOR clients as disconnecting slaves.
parent
43503ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
ecfefde7
...
@@ -650,7 +650,7 @@ void freeClient(redisClient *c) {
...
@@ -650,7 +650,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