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, 25 Nov 2021 19:02:32 +0000 (20:02 +0100)
commitb41b682bd6f1290caa4220291b22cae317cb6413
tree262ede3998993120fe9804a8e48d959de367a765
parent993b9057724e72d354d4f22e949e209879ab75be
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.
src/libsystemd/sd-journal/journal-file.c