[tracker/tracker-0.8] libtracker-db: Close journal in case of error
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] libtracker-db: Close journal in case of error
- Date: Thu, 6 May 2010 17:58:15 +0000 (UTC)
commit a0c4ad37753795724592fbbc54975a4fc422edcc
Author: Philip Van Hoof <philip codeminded be>
Date: Thu May 6 11:33:23 2010 +0200
libtracker-db: Close journal in case of error
src/libtracker-db/tracker-db-journal.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index a3e69e4..0b572ab 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -785,6 +785,7 @@ tracker_db_journal_reader_verify_last (GError **error)
if (reader.end - entry_size_check < reader.current) {
g_set_error (error, TRACKER_DB_JOURNAL_ERROR, 0,
"Damaged journal entry at end of journal");
+ tracker_db_journal_reader_shutdown ();
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]