journal-file: journal-file: extend journal header to always carry offset of most...
authorLennart Poettering <lennart@poettering.net>
Tue, 31 Jan 2023 18:20:27 +0000 (19:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 2 Mar 2023 09:03:15 +0000 (10:03 +0100)
commit206f0f397edf1144c63a158fb30f496c3e89f256
treed16777bd74b799acc0440efdf15cfe70869b8f47
parent7a67afe33192ce4a55e6825b80554fb4ebbb4b03
journal-file: journal-file: extend journal header to always carry offset of most recent entry

This way we can quickly find the most recent entry, without searching or
traversing entry array chains.

This is relevant later, as it it allows us to quickly determine the most
recent timestamps of each journal file, in a roughly atomic way.
docs/JOURNAL_FILE_FORMAT.md
src/libsystemd/sd-journal/journal-def.h
src/libsystemd/sd-journal/journal-file.c