diff options
Diffstat (limited to 'src/replication.c')
-rw-r--r-- | src/replication.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/replication.c b/src/replication.c index cf4db3e3a..064d2bece 100644 --- a/src/replication.c +++ b/src/replication.c @@ -2205,7 +2205,7 @@ void replicationResurrectCachedMaster(int newfd) { server.repl_state = REPL_STATE_CONNECTED; /* Re-add to the list of clients. */ - listAddNodeTail(server.clients,server.master); + linkClient(server.master); 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)); |