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
4b1ccdfd
Commit
4b1ccdfd
authored
Mar 11, 2013
by
antirez
Browse files
Make comment name match var name in activeExpireCycle().
parent
1f7d2c1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
4b1ccdfd
...
@@ -713,7 +713,7 @@ void activeExpireCycle(void) {
...
@@ -713,7 +713,7 @@ void activeExpireCycle(void) {
* expire. So after a given amount of milliseconds return to the
* expire. So after a given amount of milliseconds return to the
* caller waiting for the other active expire cycle. */
* caller waiting for the other active expire cycle. */
iteration
++
;
iteration
++
;
if
((
iteration
&
0xf
)
==
0
&&
/* check once every 16
cycle
s. */
if
((
iteration
&
0xf
)
==
0
&&
/* check once every 16
iteration
s. */
(
ustime
()
-
start
)
>
timelimit
)
return
;
(
ustime
()
-
start
)
>
timelimit
)
return
;
}
while
(
expired
>
REDIS_EXPIRELOOKUPS_PER_CRON
/
4
);
}
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