Commit 233e5e61 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Avoid doubly processing directories

Directories in recursively indexed roots are doubly checked here,
once when processing the parent directory children, and another
when processing the directory and its children.

Avoid the latter, so we only go through these bits once.
parent 2ee423fc
......@@ -382,6 +382,11 @@ file_notifier_add_node_foreach (GNode *node,
priv = tracker_file_notifier_get_instance_private (data->notifier);
file = node->data;
if (G_NODE_IS_ROOT (node) &&
(file != priv->current_index_root->root ||
return FALSE;
if (node->parent &&
node->parent != data->cur_parent_node) {
data->cur_parent_node = node->parent;
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