mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Call all the helper functions needed by clientsCron() as clientsCronSomething() for clarity.
This commit is contained in:
parent
6df450b77c
commit
529bde82ec
@ -641,7 +641,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 &&
|
||||
@ -681,7 +681,7 @@ void clientsCron(void) {
|
||||
listRotate(server.clients);
|
||||
head = listFirst(server.clients);
|
||||
c = listNodeValue(head);
|
||||
closeTimedoutClient(c);
|
||||
clientsCronHandleTimeout(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user