diff options
author | antirez <antirez@gmail.com> | 2016-04-04 12:23:10 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-04-04 12:24:13 +0200 |
commit | ace780c00252b7ab9d3296443b2b9572dfb40af2 (patch) | |
tree | 8c25052ac6ca73add50aa36e46e9f1ec41dce736 /src/ae.c | |
parent | 67b70a18130bb22663494689b19db5b47cfed4fd (diff) | |
download | redis-ace780c00252b7ab9d3296443b2b9572dfb40af2.tar.gz |
ae.c: comment to explain why we have a useless maxId check.
Diffstat (limited to 'src/ae.c')
-rw-r--r-- | src/ae.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -303,7 +303,11 @@ static int processTimeEvents(aeEventLoop *eventLoop) { 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) { te = te->next; continue; |