projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e19f35
)
journal: Fix navigating backwards missing entries
author
Olivier Brunel
<jjk@jjacky.com>
Fri, 5 Dec 2014 15:06:45 +0000
(16:06 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 8 Dec 2014 18:38:55 +0000
(19:38 +0100)
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
patch
|
blob
|
history
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index
7858435
..
c5d2d19
100644
(file)
--- a/
src/journal/journal-file.c
+++ b/
src/journal/journal-file.c
@@
-1657,7
+1657,7
@@
static int generic_array_bisect(
}
}
- if (k > n) {
+ if (k >
=
n) {
if (direction == DIRECTION_UP) {
i = n;
subtract_one = true;