<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - journalctl skips first entry after reboot in certain scenario"
href="https://bugs.freedesktop.org/show_bug.cgi?id=63672#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - journalctl skips first entry after reboot in certain scenario"
href="https://bugs.freedesktop.org/show_bug.cgi?id=63672">bug 63672</a>
from <span class="vcard"><a class="email" href="mailto:lennart@poettering.net" title="Lennart Poettering <lennart@poettering.net>"> <span class="fn">Lennart Poettering</span></a>
</span></b>
<pre>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!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>