Commit 5e473cd8 authored by antirez's avatar antirez
Browse files

Call all the helper functions needed by clientsCron() as clientsCronSomething() for clarity.

parent 3e8fcb6d
...@@ -628,7 +628,7 @@ long long getOperationsPerSecond(void) { ...@@ -628,7 +628,7 @@ long long getOperationsPerSecond(void) {
return sum / REDIS_OPS_SEC_SAMPLES; return sum / REDIS_OPS_SEC_SAMPLES;
} }
void closeTimedoutClient(redisClient *c) { void clientsCronHandleTimeout(redisClient *c) {
time_t now = time(NULL); time_t now = time(NULL);
if (server.maxidletime && if (server.maxidletime &&
...@@ -668,7 +668,7 @@ void clientsCron(void) { ...@@ -668,7 +668,7 @@ void clientsCron(void) {
listRotate(server.clients); listRotate(server.clients);
head = listFirst(server.clients); head = listFirst(server.clients);
c = listNodeValue(head); c = listNodeValue(head);
closeTimedoutClient(c); clientsCronHandleTimeout(c);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment