[tracker/domain-specific-indexes] squash



commit 1742280e7480f61930848c8e46b2229534e212d8
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Jul 6 13:19:07 2010 +0200

    squash

 src/libtracker-data/tracker-sparql-pattern.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-pattern.vala b/src/libtracker-data/tracker-sparql-pattern.vala
index df7cf33..fa4b1f1 100644
--- a/src/libtracker-data/tracker-sparql-pattern.vala
+++ b/src/libtracker-data/tracker-sparql-pattern.vala
@@ -1224,13 +1224,18 @@ class Tracker.Sparql.Pattern : Object {
 					VariableBindingList list = triple_context.var_bindings.lookup (v);
 
 					if (list != null && list.list != null) {
+						bool stop = false;
 						foreach (Class cl in prop.get_domain_indexes ()) {
 							foreach (VariableBinding b in list.list) {
 								if (b.type == cl) {
 									db_table = cl.name;
+									stop = true;
 									break;
 								}
 							}
+							if (stop) {
+								break;
+							}
 						}
 					}
 				}



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