[systemd-bugs] [Bug 63672] journalctl skips first entry after reboot in certain scenario
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Apr 18 13:32:42 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=63672
--- Comment #2 from Lennart Poettering <lennart at poettering.net> ---
Hmm, so, yeah, you found the issue I think, this is indeed broken the way you
describe. That said, it was actually supposed to be a good thing to cache the
last positions in all files, to make simple iteration faster. If we drop it,
then we always have to find the location where we are first, which is O(log(n))
rather than O(1) as before. Now, the real fix is probably to reset the location
as soon as we "change direction" during traversal. But for that we'd have to
remember the last direction...
Anyway, I'll commit your fix for now, given that O(log(n)) isn't so much worse
than O(1), and I want to get a new release out, but I will leave this bug open,
to look into this, add a comment about this and add a TODO item, so I really
won't forget...
BTW, I greatly appreciate the patches from you! It's awesome getting bug
reports plus the right patches all the time. That's awesome! Thanks a ton!
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130418/b5aa905e/attachment.html>
More information about the systemd-bugs
mailing list