From eb62d94a9a3141fd016b0abad8dcf142c4c0d962 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 21 May 2013 17:40:27 -0400 Subject: metadata: Downgrade journal short-read to debug Because multiple clients can be concurrently writing to the journal, it's possible to see partially written journal entries. Emitting g_warning() here breaks test cases. The real fix would be safe concurrent access to the journal, but that's harder. https://bugzilla.gnome.org/700785 --- metadata/metatree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/metatree.c b/metadata/metatree.c index 6aef33c0..74ae0ca5 100644 --- a/metadata/metatree.c +++ b/metadata/metatree.c @@ -1223,7 +1223,7 @@ meta_journal_iterate (MetaJournal *journal, entry = (MetaJournalEntry *)((char *)entry - GUINT32_FROM_BE (*(sizep-1))); if (GUINT32_FROM_BE (*(sizep)) < sizeof (MetaJournalEntry) && entry > journal->first_entry) { - g_warning ("meta_journal_iterate: found short sized entry, possible journal corruption\n"); + g_debug ("meta_journal_iterate: found short sized entry, possible journal corruption\n"); break; } -- cgit v1.2.3