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
9ba9d78a
Commit
9ba9d78a
authored
Dec 21, 2013
by
antirez
Browse files
Log when a slave lose the connection with its master.
parent
d33f3689
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
9ba9d78a
...
...
@@ -637,9 +637,9 @@ void freeClient(redisClient *c) {
*
* Note that before doing this we make sure that the client is not in
* some unexpected state, by checking its flags. */
if (server.master &&
(c->flags & REDIS_MASTER) &&
!(c->flags & (REDIS_CLOSE_AFTER_REPLY|
if (server.master &&
c->flags & REDIS_MASTER) {
redisLog(REDIS_WARNING,"Connection with master lost.");
if (
!(c->flags & (REDIS_CLOSE_AFTER_REPLY|
REDIS_CLOSE_ASAP|
REDIS_BLOCKED|
REDIS_UNBLOCKED)))
...
...
@@ -647,6 +647,7 @@ void freeClient(redisClient *c) {
replicationCacheMaster(c);
return;
}
}
/* Free the query buffer */
sdsfree(c->querybuf);
...
...
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