[tracker/domain-specific-indexes-review: 8/13] libtracker-data: Disallow multi-value properties for domain specific indexes



commit b8660156b347aedd7cddf98305f06eba141ff330
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Jul 5 11:09:37 2010 +0200

    libtracker-data: Disallow multi-value properties for domain specific indexes

 src/libtracker-data/tracker-data-manager.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index fa9d480..562e52d 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -551,6 +551,12 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
 			return;
 		}
 
+		if (tracker_property_get_multiple_values (property)) {
+			g_critical ("%s: Property %s has multiple values while trying to add it as tracker:domainIndex in %s, this isn't supported",
+			            ontology_path, object, subject);
+			return;
+		}
+
 		properties = tracker_class_get_domain_indexes (class);
 		while (*properties) {
 			if (property == *properties) {



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