[tracker/secondary-index-upported] Fixes to squash



commit c650001b3f2a5c1ef032c58fdb4cd8232356b5bf
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed May 19 10:40:08 2010 +0200

    Fixes to squash

 src/libtracker-data/tracker-data-manager.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 1ccc561..563a099 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -416,6 +416,7 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
 				} else {
 					/* Reset for a correct post-check */
 					tracker_property_set_indexed (property, FALSE);
+					tracker_property_set_secondary_index (property, NULL);
 					tracker_property_set_writeback (property, FALSE);
 				}
 				return;
@@ -611,9 +612,7 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
 			return;
 		}
 
-		if (strcmp (object, "true") == 0) {
-			tracker_property_set_indexed (property, TRUE);
-		}
+		tracker_property_set_indexed (property, (strcmp (object, "true") == 0));
 	} else if (g_strcmp0 (predicate, TRACKER_PREFIX "secondaryIndex") == 0) {
 		TrackerProperty *property, *secondary_index;
 



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