Commit 0f43ce3c authored by Carlos Garnacho's avatar Carlos Garnacho

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.
parent deb12ca3
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment