chiark / gitweb /
journal: skipping of exhausted journal files is bad if direction changed
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 19 Dec 2014 16:11:22 +0000 (17:11 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Fri, 19 Dec 2014 16:14:11 +0000 (17:14 +0100)
commit668c965af4e803f460925dc616f328ed274d1f3a
treee6c19cc71ac6fc63bab55f9e269b2740c9dd80ed
parentb29ddfcb389127cf00ab41447a721e479fe15713
journal: skipping of exhausted journal files is bad if direction changed

EOF is meaningless if the direction of iteration changes.
Move the EOF optimization under the direction check.

This fixes test-journal-interleaving for me.

Thanks to Filipe Brandenburger for telling me about the failure.
src/journal/sd-journal.c