mirror of
https://github.com/fluencelabs/redis
synced 2025-07-16 00:51:56 +00:00
Call all the helper functions needed by clientsCron() as clientsCronSomething() for clarity.
This commit is contained in:
@@ -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) {
|
|||||||
listRotate(server.clients);
|
listRotate(server.clients);
|
||||||
head = listFirst(server.clients);
|
head = listFirst(server.clients);
|
||||||
c = listNodeValue(head);
|
c = listNodeValue(head);
|
||||||
closeTimedoutClient(c);
|
clientsCronHandleTimeout(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user