]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-journal: downgrade log message "Unused data (entry_offset==0)"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Apr 2024 06:20:29 +0000 (15:20 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 20 Apr 2024 11:27:37 +0000 (13:27 +0200)
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.

src/libsystemd/sd-journal/journal-verify.c

index 2e09e715745a5e42240a0e375d53dacc158bb58a..e852591a89140baa6a5d10e795ff76f7829ebc67 100644 (file)
@@ -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));