[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 97/115] libtracker-miner: Do not check indexing tree on monitor events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/shuffle-libtracker-miner: 97/115] libtracker-miner: Do not check indexing tree on monitor events
- Date: Thu, 12 Dec 2019 11:15:00 +0000 (UTC)
commit b9ee841297c5535979ad10313d2e92ea0a90556b
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Mar 2 23:54:24 2019 +0100
libtracker-miner: Do not check indexing tree on monitor events
Leave all checks on TrackerIndexingTree to the TrackerFileNotifier,
and report all events to it. Those might trigger other actions
(eg. policy changes through the TrackerIndexingTree) that shouldn't
go ignored.
src/libtracker-miner/tracker-monitor.c | 29 -----------------------------
1 file changed, 29 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 69ed4e7db..7157c6a47 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -670,17 +670,6 @@ monitor_event_cb (GFileMonitor *file_monitor,
if (!other_file) {
is_directory = check_is_directory (monitor, file);
- /* Avoid non-indexable-files */
- if (priv->tree &&
- !tracker_indexing_tree_file_is_indexable (priv->tree,
- file,
- (is_directory ?
- G_FILE_TYPE_DIRECTORY :
- G_FILE_TYPE_REGULAR))) {
- g_free (file_uri);
- return;
- }
-
other_file_uri = NULL;
g_debug ("Received monitor event:%d (%s) for %s:'%s'",
event_type,
@@ -695,24 +684,6 @@ monitor_event_cb (GFileMonitor *file_monitor,
is_directory = check_is_directory (monitor, file);
}
- /* Avoid doing anything of both
- * file/other_file are non-indexable
- */
- if (priv->tree &&
- !tracker_indexing_tree_file_is_indexable (priv->tree,
- file,
- (is_directory ?
- G_FILE_TYPE_DIRECTORY :
- G_FILE_TYPE_REGULAR)) &&
- !tracker_indexing_tree_file_is_indexable (priv->tree,
- other_file,
- (is_directory ?
- G_FILE_TYPE_DIRECTORY :
- G_FILE_TYPE_REGULAR))) {
- g_free (file_uri);
- return;
- }
-
other_file_uri = g_file_get_uri (other_file);
g_debug ("Received monitor event:%d (%s) for files '%s'->'%s'",
event_type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]