mirror of
https://github.com/fluencelabs/redis
synced 2025-05-05 07:22:15 +00:00
Comment improved so that the code goal is more clear. Thx to @agladysh.
This commit is contained in:
parent
3a401464e9
commit
f078d5628d
@ -645,7 +645,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 & 0xff) == 0 && /* & 0xff is the same as % 255 */
|
if ((iteration & 0xff) == 0 && /* Check once every 255 iterations */
|
||||||
(mstime()-start) > REDIS_EXPIRELOOKUPS_TIME_LIMIT) return;
|
(mstime()-start) > REDIS_EXPIRELOOKUPS_TIME_LIMIT) return;
|
||||||
} while (expired > REDIS_EXPIRELOOKUPS_PER_CRON/4);
|
} while (expired > REDIS_EXPIRELOOKUPS_PER_CRON/4);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user