[tracker] TrackerMinerFS: Fix IRI cache invalidation.



commit e97d25138f780c240c93c8fd3d0dc8053e47f0eb
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jun 9 14:26:31 2010 +0200

    TrackerMinerFS: Fix IRI cache invalidation.
    
    When a NULL value was being inserted in the hashtable, the next query for it
    is supposed to issue a item_query_exists() call, but the iri was only being
    stored in the hashtable, and not returned so its used.

 src/libtracker-miner/tracker-miner-fs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index a585565..86a644c 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1259,6 +1259,7 @@ iri_cache_lookup (TrackerMinerFS *fs,
 		if (item_query_exists (fs, file, &query_iri, NULL)) {
 			g_hash_table_insert (fs->private->iri_cache,
 			                     g_object_ref (file), query_iri);
+			iri = query_iri;
 		} else {
 			g_hash_table_remove (fs->private->iri_cache, file);
 			iri = NULL;



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