mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
ae.c: comment to explain why we have a useless maxId check.
This commit is contained in:
parent
67b70a1813
commit
ace780c002
6
src/ae.c
6
src/ae.c
@ -303,7 +303,11 @@ static int processTimeEvents(aeEventLoop *eventLoop) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't process time events created by time events in this iteration. */
|
/* Make sure we don't process time events created by time events in
|
||||||
|
* this iteration. Note that this check is currently useless: we always
|
||||||
|
* add new timers on the head, however if we change the implementation
|
||||||
|
* detail, this check may be useful again: we keep it here for future
|
||||||
|
* defense. */
|
||||||
if (te->id > maxId) {
|
if (te->id > maxId) {
|
||||||
te = te->next;
|
te = te->next;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user