[tracker-miners/wip/carlosg/speed-track: 11/22] libtracker-miner: Avoid checking parent when checking contents
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/speed-track: 11/22] libtracker-miner: Avoid checking parent when checking contents
- Date: Thu, 22 Oct 2020 14:45:56 +0000 (UTC)
commit ac2f9051f2c769ceed16dbca5d562e68bc0c10fa
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 17 13:39:57 2020 +0200
libtracker-miner: Avoid checking parent when checking contents
We check the parent folder (multiple times actually) before filtering
based on directory contents. Just avoid this here.
src/libtracker-miner/tracker-indexing-tree.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-indexing-tree.c b/src/libtracker-miner/tracker-indexing-tree.c
index 0ff35968c..b74e28ff9 100644
--- a/src/libtracker-miner/tracker-indexing-tree.c
+++ b/src/libtracker-miner/tracker-indexing-tree.c
@@ -929,12 +929,6 @@ tracker_indexing_tree_parent_is_indexable (TrackerIndexingTree *tree,
priv = tree->priv;
- if (!tracker_indexing_tree_file_is_indexable (tree,
- parent,
- G_FILE_TYPE_DIRECTORY)) {
- return FALSE;
- }
-
while (children && !has_match) {
has_match = tracker_indexing_tree_file_matches_filter (tree,
TRACKER_FILTER_PARENT_DIRECTORY,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]