From: antirez Date: Mon, 23 Jan 2012 15:17:22 +0000 (+0100) Subject: actually call the function to async free clients in serverCron(). X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/8c43e66346bf917ce13b85e79700a2183fa01ab7?ds=sidebyside;hp=--cc actually call the function to async free clients in serverCron(). --- 8c43e66346bf917ce13b85e79700a2183fa01ab7 diff --git a/src/redis.c b/src/redis.c index 711cebe0..71a5131f 100644 --- a/src/redis.c +++ b/src/redis.c @@ -754,6 +754,9 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) { * in order to guarantee a strict consistency. */ if (server.masterhost == NULL) activeExpireCycle(); + /* Close clients that need to be closed asynchronous */ + freeClientsInAsyncFreeQueue(); + /* Replication cron function -- used to reconnect to master and * to detect transfer failures. */ if (!(loops % 10)) replicationCron();