Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f333788f
"vscode:/vscode.git/clone" did not exist on "7cc2056965cfbf0b895c5e39baaf27b84bd1cb05"
Commit
f333788f
authored
May 11, 2012
by
antirez
Browse files
Comment improved so that the code goal is more clear. Thx to @agladysh.
parent
1dcc95d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
f333788f
...
...
@@ -658,7 +658,7 @@ void activeExpireCycle(void) {
* expire. So after a given amount of milliseconds return to the
* caller waiting for the other active expire cycle. */
iteration
++
;
if
((
iteration
&
0xff
)
==
0
&&
/*
& 0xff is the same as % 255
*/
if
((
iteration
&
0xff
)
==
0
&&
/*
Check once every 255 iterations
*/
(
mstime
()
-
start
)
>
REDIS_EXPIRELOOKUPS_TIME_LIMIT
)
return
;
}
while
(
expired
>
REDIS_EXPIRELOOKUPS_PER_CRON
/
4
);
}
...
...
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