chiark / gitweb /
journal: Fix navigating backwards missing entries
authorOlivier Brunel <jjk@jjacky.com>
Fri, 5 Dec 2014 15:06:45 +0000 (16:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Dec 2014 18:38:55 +0000 (19:38 +0100)
commit2173cbf847fc53ca24950e77958c902edecfc207
treedfdc0f7f9cbc7f7bbc9ef2079948f44a1b04d710
parent1e19f35297ee757095cf372c82c3d9a6bb2311d3
journal: Fix navigating backwards missing entries

With DIRECTION_UP (i.e. navigating backwards) in generic_array_bisect() when the
needle was found as the last item in the array, it wasn't actually processed as
match, resulting in entries being missed.

https://bugs.freedesktop.org/show_bug.cgi?id=86855
src/journal/journal-file.c