Commit c2dc99bf authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Unset parent folder iri cache if dealing with the root dir

This fixes infinite recursion when indexing an out-of-config-trees file
(eg. via tracker-control -f <file>), as the miner aditionally indexes the
parent folders up to file:///, when reaching that case stale URN cache data
was making the miner think that the root folder hadn't been indexed yet.
parent e90a80c5
......@@ -1782,6 +1782,14 @@ iri_cache_check_update (TrackerMinerFS *fs,
g_object_unref (parent);
} else {
if (fs->priv->current_iri_cache_parent)
g_object_unref (fs->priv->current_iri_cache_parent);
g_free (fs->priv->current_iri_cache_parent_urn);
fs->priv->current_iri_cache_parent_urn = NULL;
fs->priv->current_iri_cache_parent = NULL;
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