[tracker/rss-enclosures] TrackerMinerFS: Fix IRI cache invalidation.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] TrackerMinerFS: Fix IRI cache invalidation.
- Date: Sat, 26 Jun 2010 23:16:00 +0000 (UTC)
commit f1e9494f90493dca253b75e18098ca597c316a1d
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]