[tracker/binary-log-2: 41/63] libtracker-data: Also append ontology entries to journal



commit 0d68e7cc5d7244c097901a3e02e4003b69451d51
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jan 6 10:42:13 2010 +0100

    libtracker-data: Also append ontology entries to journal

 src/libtracker-data/tracker-data-manager.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 6727075..7aaad34 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -717,6 +717,7 @@ insert_uri_in_resource_table (TrackerDBInterface *iface,
 		g_clear_error (&error);
 	}
 
+	tracker_db_journal_append_resource (id, uri);
 	tracker_ontology_add_id_uri_pair (id, uri);
 
 	if (class)
@@ -1080,6 +1081,7 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 		classes = tracker_ontology_get_classes (&n_classes);
 
 		tracker_data_begin_transaction ();
+		tracker_db_journal_start_transaction ();
 
 		/* create tables */
 		for (i = 0; i < n_classes; i++) {
@@ -1116,6 +1118,7 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 			}
 		}
 
+		tracker_db_journal_commit_transaction ();
 		tracker_data_commit_transaction ();
 
 		g_list_foreach (sorted, (GFunc) g_free, NULL);



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