journal: Remove entry seqnum revert logic
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 Nov 2021 14:29:02 +0000 (14:29 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jan 2022 09:58:49 +0000 (10:58 +0100)
commitad6e69ecc5826ee2942b62c13436a85176021fdf
tree798395541d1bc9fb87967b96e64f97f3e40f5bb7
parent5d0b536e129a4fd95ab710daa615019ad2ff0cf0
journal: Remove entry seqnum revert logic

This actually causes mismatches between the header tail entry seqnum
and the last entry seqnum since when we revert the header seqnum, we
don't remove the entry object we added. If adding the entry object
itself fails, we don't need to revert the seqnum since it's never
incremented so let's remove this logic alltogether.

(cherry picked from commit b41b682bd6f1290caa4220291b22cae317cb6413)
(cherry picked from commit 06a0e8283ed87773795f28e58318d5d1b46b1088)
src/libsystemd/sd-journal/journal-file.c