]> git.ipfire.org Git - thirdparty/systemd.git/commit
journald: harden against forward clock jumps before unclean shutdown
authormsizanoen1 <msizanoen@qtmlabs.xyz>
Sat, 8 Oct 2022 12:41:18 +0000 (19:41 +0700)
committermsizanoen1 <msizanoen@qtmlabs.xyz>
Sun, 16 Oct 2022 14:07:33 +0000 (21:07 +0700)
commit383d9155a2b5be10e2a14909c234a99e0e0dbba7
treed72b5532882ee3ed5c8dd3f2c87e54930122e643
parentae24e4e80eedb9e54c818e6bcf6d812d2c004671
journald: harden against forward clock jumps before unclean shutdown

Try harder to inherit the sequence number and ID from the old journal
file before rotating it away.

This helps the libsystemd journal file selection code make better decisions
even in the face of massive incorrect forward clock jumps prior to an
unclean shutdown.
src/journal/managed-journal-file.c