Skip to content

Commit

Permalink
Call all the helper functions needed by clientsCron() as clientsCronS…
Browse files Browse the repository at this point in the history
…omething() for clarity.
  • Loading branch information
antirez committed Mar 14, 2012
1 parent 6df450b commit 529bde8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -681,7 +681,7 @@ void clientsCron(void) {
listRotate(server.clients);
head = listFirst(server.clients);
c = listNodeValue(head);
closeTimedoutClient(c);
clientsCronHandleTimeout(c);
}
}

Expand Down

0 comments on commit 529bde8

Please sign in to comment.