projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6df450b
)
Call all the helper functions needed by clientsCron() as clientsCronSomething() for...
author
antirez
<antirez@gmail.com>
Wed, 14 Mar 2012 08:56:22 +0000
(09:56 +0100)
committer
antirez
<antirez@gmail.com>
Wed, 14 Mar 2012 08:56:22 +0000
(09:56 +0100)
src/redis.c
patch
|
blob
|
blame
|
history
diff --git
a/src/redis.c
b/src/redis.c
index 5741bc90f5986d665281ff0eb2836d0467b5b1a3..f46f2376d7e53a181ec28a0cc3d1c906c300fac1 100644
(file)
--- a/
src/redis.c
+++ b/
src/redis.c
@@
-641,7
+641,7
@@
long long getOperationsPerSecond(void) {
return sum / REDIS_OPS_SEC_SAMPLES;
}
return sum / REDIS_OPS_SEC_SAMPLES;
}
-void cl
oseTimedoutClien
t(redisClient *c) {
+void cl
ientsCronHandleTimeou
t(redisClient *c) {
time_t now = time(NULL);
if (server.maxidletime &&
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);
listRotate(server.clients);
head = listFirst(server.clients);
c = listNodeValue(head);
- cl
oseTimedoutClien
t(c);
+ cl
ientsCronHandleTimeou
t(c);
}
}
}
}