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



commit e3e42abe977721e47eded4eab6f7b2cceda92f95
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]