提交 529bde82 编写于 作者: A antirez

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

上级 6df450b7
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册