Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
529bde82
Commit
529bde82
authored
Mar 14, 2012
by
antirez
Browse files
Call all the helper functions needed by clientsCron() as clientsCronSomething() for clarity.
parent
6df450b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
529bde82
...
...
@@ -641,7 +641,7 @@ long long getOperationsPerSecond(void) {
return
sum
/
REDIS_OPS_SEC_SAMPLES
;
}
void
cl
os
eTime
d
out
Client
(
redisClient
*
c
)
{
void
cl
ientsCronHandl
eTimeout
(
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
);
cl
os
eTime
d
out
Client
(
c
);
cl
ientsCronHandl
eTimeout
(
c
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment