]> git.saurik.com Git - redis.git/commitdiff
Call all the helper functions needed by clientsCron() as clientsCronSomething() for...
authorantirez <antirez@gmail.com>
Wed, 14 Mar 2012 08:56:22 +0000 (09:56 +0100)
committerantirez <antirez@gmail.com>
Wed, 14 Mar 2012 14:36:16 +0000 (15:36 +0100)
src/redis.c

index 1b576e047cb45051131f9ddd751b3912ddfd9369..58b5f1c4bf2d973e8035abb39ede205dea14de95 100644 (file)
@@ -628,7 +628,7 @@ long long getOperationsPerSecond(void) {
     return sum / REDIS_OPS_SEC_SAMPLES;
 }
 
-void closeTimedoutClient(redisClient *c) {
+void clientsCronHandleTimeout(redisClient *c) {
     time_t now = time(NULL);
 
     if (server.maxidletime &&
@@ -668,7 +668,7 @@ void clientsCron(void) {
         listRotate(server.clients);
         head = listFirst(server.clients);
         c = listNodeValue(head);
-        closeTimedoutClient(c);
+        clientsCronHandleTimeout(c);
     }
 }