[tracker/binary-log] libtracker-data: Open/close the journal on init/shutdown



commit e464df10a92bb825d1222de6fe4f4dcc81daf64e
Author: Jürg Billeter <j bitron ch>
Date:   Tue Dec 29 17:25:12 2009 +0100

    libtracker-data: Open/close the journal on init/shutdown

 src/libtracker-data/tracker-data-manager.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index ac3ebac..8f6d25b 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -822,6 +822,8 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 
 	iface = tracker_db_manager_get_db_interface ();
 
+	tracker_db_journal_open ();
+
 	if (is_first_time_index) {
 		TrackerClass **classes;
 		TrackerProperty **properties;
@@ -943,6 +945,8 @@ tracker_data_manager_shutdown (void)
 {
 	g_return_if_fail (initialized == TRUE);
 
+	tracker_db_journal_close ();
+
 	tracker_db_manager_shutdown ();
 
 	initialized = FALSE;



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