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
69897f5f
Commit
69897f5f
authored
Dec 09, 2015
by
antirez
Browse files
unlinkClient(): clear flags according to ops performed.
parent
e0f22df9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
69897f5f
...
@@ -694,6 +694,7 @@ void unlinkClient(client *c) {
...
@@ -694,6 +694,7 @@ void unlinkClient(client *c) {
ln = listSearchKey(server.clients_pending_write,c);
ln = listSearchKey(server.clients_pending_write,c);
serverAssert(ln != NULL);
serverAssert(ln != NULL);
listDelNode(server.clients_pending_write,ln);
listDelNode(server.clients_pending_write,ln);
c->flags &= ~CLIENT_PENDING_WRITE;
}
}
/* When client was just unblocked because of a blocking operation,
/* When client was just unblocked because of a blocking operation,
...
@@ -702,6 +703,7 @@ void unlinkClient(client *c) {
...
@@ -702,6 +703,7 @@ void unlinkClient(client *c) {
ln = listSearchKey(server.unblocked_clients,c);
ln = listSearchKey(server.unblocked_clients,c);
serverAssert(ln != NULL);
serverAssert(ln != NULL);
listDelNode(server.unblocked_clients,ln);
listDelNode(server.unblocked_clients,ln);
c->flags &= ~CLIENT_UNBLOCKED;
}
}
}
}
...
...
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