]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-event/sd-event.c
sd-event: always reshuffle time prioq on changing online/offline state 19924/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Jun 2021 17:13:59 +0000 (02:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Jun 2021 17:34:26 +0000 (02:34 +0900)
commit2115b9b6629eeba7bc9f42f757f38205febb1cb7
tree159fa7fbb578fcc1f3182e8cecea69bd514847c3
parent5c08c7ab23dbf02aaf4e4bbae8e08a195da230a4
sd-event: always reshuffle time prioq on changing online/offline state

Before 81107b8419c39f726fd2805517a5b9faab204e59, the compare functions
for the latest or earliest prioq did not handle ratelimited flag.
So, it was ok to not reshuffle the time prioq when changing the flag.

But now, those two compare functions also compare the source is
ratelimited or not. So, it is necessary to reshuffle the time prioq
after changing the ratelimited flag.

Hopefully fixes #19903.
src/libsystemd/sd-event/sd-event.c