[tracker/binary-log-2: 21/45] libtracker-data: Also append ontology entries to journal
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/binary-log-2: 21/45] libtracker-data: Also append ontology entries to journal
- Date: Fri, 8 Jan 2010 11:27:02 +0000 (UTC)
commit 75b8ebb844b95d8c68dec68f1a3182b4619a6504
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]