mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 01:31:21 +00:00
networking: optimize unlinkClient() in freeClient()
This commit is contained in:
@ -2206,6 +2206,7 @@ void replicationResurrectCachedMaster(int newfd) {
|
||||
|
||||
/* Re-add to the list of clients. */
|
||||
listAddNodeTail(server.clients,server.master);
|
||||
server.master->client_list_node = listLast(server.clients);
|
||||
if (aeCreateFileEvent(server.el, newfd, AE_READABLE,
|
||||
readQueryFromClient, server.master)) {
|
||||
serverLog(LL_WARNING,"Error resurrecting the cached master, impossible to add the readable handler: %s", strerror(errno));
|
||||
|
Reference in New Issue
Block a user