[tracker/tracker-0.10] Bug 644484 - miner-fs not removing files from the store



commit fc6dd7997eb2f9eac6914c9994f3fbe0935995b5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 11 14:55:01 2011 +0100

    Bug 644484 - miner-fs not removing files from the store
    
    Fix silly typo that made uri-is-descendant() not work as expected.
    Reported by Lionel Landwerlin.

 src/libtracker-data/tracker-db-interface-sqlite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c b/src/libtracker-data/tracker-db-interface-sqlite.c
index d090bc4..298a3c5 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -368,7 +368,7 @@ function_sparql_uri_is_descendant (sqlite3_context *context,
 
 	child = sqlite3_value_text (argv[argc-1]);
 
-	for (i = 0; i < argc - 1 && match; i++) {
+	for (i = 0; i < argc - 1 && !match; i++) {
 		if (sqlite3_value_type (argv[i]) == SQLITE_TEXT) {
 			const gchar *parent = sqlite3_value_text (argv[i]);
 			guint parent_len = sqlite3_value_bytes (argv[i]);



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