[tracker/tracker-0.8] TrackerMinerFS: Fix IRI cache invalidation.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] TrackerMinerFS: Fix IRI cache invalidation.
- Date: Thu, 10 Jun 2010 13:12:14 +0000 (UTC)
commit 0f48cdc4be353fc85bb6b200c397e7066b125ad4
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 d1259a1..d32e245 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1222,6 +1222,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]