[tracker/rss-enclosures] tracker-control: Fix runtime critical when journal file doesn't exist



commit 0d9069e615b338fbba1729cf0d28db67c6209d73
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Oct 25 09:45:18 2010 +0200

    tracker-control: Fix runtime critical when journal file doesn't exist

 src/tracker-control/tracker-control.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-control/tracker-control.c b/src/tracker-control/tracker-control.c
index ce5d079..e835323 100644
--- a/src/tracker-control/tracker-control.c
+++ b/src/tracker-control/tracker-control.c
@@ -434,7 +434,6 @@ main (int argc, char **argv)
 		tracker_db_journal_set_rotating ((chunk_size_mb != -1),
 		                                 chunk_size, rotate_to);
 
-		tracker_db_journal_init (NULL, FALSE);
 
 		g_object_unref (db_config);
 
@@ -443,6 +442,8 @@ main (int argc, char **argv)
 			return EXIT_FAILURE;
 		}
 
+		tracker_db_journal_init (NULL, FALSE);
+
 		tracker_db_manager_remove_all (hard_reset);
 		tracker_db_manager_shutdown ();
 		tracker_db_journal_shutdown ();



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