summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-01-13 12:54:39 +0100
committerantirez <antirez@gmail.com>2020-01-13 12:54:39 +0100
commitd28948b14303fdf00b331090ef177cc6cca54fe1 (patch)
tree8e67d36005d75c98f7b5724ea1d472d7a6ab3ec1
parenta8c912ead65e85b5ce3dae936320e77e047df9c9 (diff)
downloadredis-d28948b14303fdf00b331090ef177cc6cca54fe1.tar.gz
Port PR #6110 to new connection object code.
-rw-r--r--src/networking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/networking.c b/src/networking.c
index 96ab8e592..73dc4afca 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -2822,7 +2822,7 @@ int handleClientsWithPendingWritesUsingThreads(void) {
listRewind(io_threads_list[server.io_threads_num],&li);
while((ln = listNext(&li))) {
client *c = listNodeValue(ln);
- writeToClient(c->fd,c,0);
+ writeToClient(c,0);
}
listEmpty(io_threads_list[server.io_threads_num]);
@@ -2907,7 +2907,7 @@ int handleClientsWithPendingReadsUsingThreads(void) {
listRewind(io_threads_list[server.io_threads_num],&li);
while((ln = listNext(&li))) {
client *c = listNodeValue(ln);
- readQueryFromClient(NULL,c->fd,c,0);
+ readQueryFromClient(c->conn);
}
listEmpty(io_threads_list[server.io_threads_num]);