sd-journal: fix assignment of tail entry offset
Fixes a bug introduced by 206f0f397e.
This commit is contained in:
committed by
Lennart Poettering
parent
7cd4f577e8
commit
45a6a2aace
@@ -2122,7 +2122,8 @@ static int journal_file_link_entry(
|
||||
|
||||
f->header->tail_entry_realtime = o->entry.realtime;
|
||||
f->header->tail_entry_monotonic = o->entry.monotonic;
|
||||
f->header->tail_entry_offset = offset;
|
||||
if (JOURNAL_HEADER_CONTAINS(f->header, tail_entry_offset))
|
||||
f->header->tail_entry_offset = htole64(offset);
|
||||
f->newest_mtime = 0; /* we have a new tail entry now, explicitly invalidate newest boot id/timestamp info */
|
||||
|
||||
/* Link up the items */
|
||||
|
||||
Reference in New Issue
Block a user