[tracker/tracker-0.8] Fixes NB#174333 - Each file is listed twice in tracker search results
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] Fixes NB#174333 - Each file is listed twice in tracker search results
- Date: Thu, 17 Jun 2010 15:40:50 +0000 (UTC)
commit 9f6d0d2437103465d34c0f65b00ced4c6a2fc4ac
Author: Martyn Russell <martyn lanedo com>
Date: Wed Jun 16 15:26:07 2010 +0100
Fixes NB#174333 - Each file is listed twice in tracker search results
Unset parent folder so caches are regenerated.
The issue was due to priv->current_folder being reused for both mtime
cache (for crawling stage) and iri cache (for indexing stage). So when
recrawling, the miner changes current_folder without invalidating the
iri cache, so there could be a mismatch when it enters the indexing
stage again.
src/libtracker-miner/tracker-miner-fs.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index fa73f00..c1ba4e1 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2881,6 +2881,12 @@ crawl_directories_cb (gpointer user_data)
}
if (!fs->private->directories) {
+ if (fs->private->current_parent) {
+ /* Unset parent folder so caches are regenerated */
+ g_object_unref (fs->private->current_parent);
+ fs->private->current_parent = NULL;
+ }
+
/* Now we handle the queue */
item_queue_handlers_set_up (fs);
crawl_directories_stop (fs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]