]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
journal-file: make seeking in corrupted files work
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Apr 2016 09:39:48 +0000 (11:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Apr 2016 10:00:49 +0000 (12:00 +0200)
commitbee6a29198e7c8f6636aafece9a42c97435d171e
treef5540a2a918be54faf249649b1004720acafc664
parentcaeab8f626e709569cc492b75eb7e119076059e7
journal-file: make seeking in corrupted files work

Previously, when we used a bisection table for seeking through a corrupted
file, and the end of the bisection table was corrupted we'd most likely fail
the entire seek operation. Improve the situation: if we encounter invalid
entries in a bisection table, linearly go backwards until we find a working
entry again.
src/journal/journal-file.c