[gvfs] metadata: Downgrade journal short-read to debug



commit eb62d94a9a3141fd016b0abad8dcf142c4c0d962
Author: Colin Walters <walters verbum org>
Date:   Tue May 21 17:40:27 2013 -0400

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/metadata/metatree.c b/metadata/metatree.c
index 6aef33c..74ae0ca 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;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]