[tracker] libtracker-miner: Do not recurse up the hierarchy for out-of-tree index requests
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Do not recurse up the hierarchy for out-of-tree index requests
- Date: Thu, 5 May 2016 11:46:19 +0000 (UTC)
commit fea405eae6d8f1e7fc6477440960bd991bee4169
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue May 3 00:31:40 2016 +0200
libtracker-miner: Do not recurse up the hierarchy for out-of-tree index requests
If we receive a tracker_miner_fs_check_file() request for a file out of
indexing trees, it'd usually end up recursing until it ran out of parents
(that is, up to file:///). This is quite pointless, if only one file was
requested to be indexed.
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 551eb0c..b466913 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2562,6 +2562,7 @@ item_queue_handlers_cb (gpointer user_data)
if (!parent ||
tracker_indexing_tree_file_is_root (fs->priv->indexing_tree, file) ||
+ !tracker_indexing_tree_get_root (fs->priv->indexing_tree, file, NULL) ||
lookup_file_urn (fs, parent, TRUE)) {
keep_processing = item_add_or_update (fs, file, priority);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]