[tracker/binary-log-2: 36/47] libtracker-data: Create FTS table right after creating the other tables



commit f79dd6a79692a624634ea1668c1e7406035db0c7
Author: Jürg Billeter <j bitron ch>
Date:   Thu Jan 7 12:30:37 2010 +0100

    libtracker-data: Create FTS table right after creating the other tables

 src/libtracker-data/tracker-data-manager.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index ed5d5d7..c82eb1b 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -997,6 +997,8 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 			create_decomposed_metadata_tables (iface, classes[i]);
 		}
 
+		create_fts_table (iface);
+
 		/* 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]),
@@ -1011,8 +1013,6 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 			                              &max_id, NULL, properties[i]);
 		}
 
-		create_fts_table (iface);
-
 		tracker_data_commit_transaction ();
 
 		tracker_db_journal_reader_shutdown ();
@@ -1096,6 +1096,8 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 			create_decomposed_metadata_tables (iface, classes[i]);
 		}
 
+		create_fts_table (iface);
+
 		/* 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]),
@@ -1110,8 +1112,6 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 			                              &max_id, NULL, properties[i]);
 		}
 
-		create_fts_table (iface);
-
 		/* store ontology in database */
 		for (l = sorted; l; l = l->next) {
 			import_ontology_file (l->data);



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