[tracker] tracker-control: Fix runtime critical when journal file doesn't exist
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-control: Fix runtime critical when journal file doesn't exist
- Date: Mon, 25 Oct 2010 07:45:52 +0000 (UTC)
commit 1f72046a7b3f5fdfb7094969c53137ffff0e35d7
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]