[tracker/binary-log-2: 49/56] libtracker-data: Merge fixes



commit fecb62aeecbbaef31d06e2e1f9fa0692d2bb631e
Author: Jürg Billeter <j bitron ch>
Date:   Thu Jan 7 12:13:32 2010 +0100

    libtracker-data: Merge fixes

 src/libtracker-data/tracker-data-manager.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 4edd859..ed5d5d7 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -994,7 +994,13 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 
 		/* create tables */
 		for (i = 0; i < n_classes; i++) {
-			create_decomposed_metadata_tables (iface, classes[i], &max_id);
+			create_decomposed_metadata_tables (iface, classes[i]);
+		}
+
+		/* insert classes into rdfs:Resource table */
+		for (i = 0; i < n_classes; i++) {
+			insert_uri_in_resource_table (iface, tracker_class_get_uri (classes[i]),
+				                      &max_id, classes[i], NULL);
 		}
 
 		/* insert properties into rdfs:Resource table */
@@ -1093,7 +1099,7 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 		/* insert classes into rdfs:Resource table */
 		for (i = 0; i < n_classes; i++) {
 			insert_uri_in_resource_table (iface, tracker_class_get_uri (classes[i]),
-				                      &max_id);
+				                      &max_id, classes[i], NULL);
 		}
 
 		/* insert properties into rdfs:Resource table */



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