mirror of
https://github.com/systemd/systemd.git
synced 2024-11-28 04:33:36 +08:00
sd-journal: downgrade log message "Unused data (entry_offset==0)"
This happens when journal is rotated after a data is written but before an entry that linked to the data is not written yet. This is neither data corruption, nor program error. Let's downgrade the log level. Closes #32153.
This commit is contained in:
parent
f0297ea097
commit
cb7e892c22
@ -163,7 +163,7 @@ static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o
|
||||
int r;
|
||||
|
||||
if (le64toh(o->data.entry_offset) == 0)
|
||||
warning(offset, "Unused data (entry_offset==0)");
|
||||
debug(offset, "Unused data (entry_offset==0)");
|
||||
|
||||
if ((le64toh(o->data.entry_offset) == 0) ^ (le64toh(o->data.n_entries) == 0)) {
|
||||
error(offset, "Bad n_entries: %"PRIu64, le64toh(o->data.n_entries));
|
||||
|
Loading…
Reference in New Issue
Block a user