mirror of
https://github.com/systemd/systemd.git
synced 2025-08-31 09:49:54 +03: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:
committed by
Luca Boccassi
parent
f0297ea097
commit
cb7e892c22
@ -163,7 +163,7 @@ static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (le64toh(o->data.entry_offset) == 0)
|
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)) {
|
if ((le64toh(o->data.entry_offset) == 0) ^ (le64toh(o->data.n_entries) == 0)) {
|
||||||
error(offset, "Bad n_entries: %"PRIu64, le64toh(o->data.n_entries));
|
error(offset, "Bad n_entries: %"PRIu64, le64toh(o->data.n_entries));
|
||||||
|
Reference in New Issue
Block a user