]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal-upload-journal: handle partially written fields gracefully
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Apr 2025 12:59:13 +0000 (14:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 May 2025 13:39:57 +0000 (15:39 +0200)
commitcf2d660f2f8fcc8f3fb212524fd6a7dfba7bc527
tree65c34f3d23e70a51786e8a533a10971b3620b9fc
parent3017ddfcc861b8d5fd7290c34cd37c6ed4bbcfe1
journal-upload-journal: handle partially written fields gracefully

With the more efficient sync semantics it's more likely that
journal-upload-journal will try to read a partially written message.
Previously we'd fail then. Let's instead treat this gracefully,
expecting that this is either the end or will be fixed shortly (and
we'll get notified via inotify about it and recheck).
src/journal-remote/journal-upload-journal.c