networking: optimize unlinkClient() in freeClient()

This commit is contained in:
zhaozhao.zz
2017-11-30 18:11:05 +08:00
parent 75fa7879e6
commit 43be967690
3 changed files with 12 additions and 4 deletions

View File

@ -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));