Commit a6e1fc5f authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Query items after commit on TrackerDecorator::finished

When the decorator finishes, we commit all pending tasks, and query again
just in case there's missed ones. If we don't wait for the former to do the
latter, we might be counting tasks that are actually completed.

We will check again after commit, so just don't do this here.
parent 48d3c8b7
......@@ -500,7 +500,8 @@ decorator_task_done (GObject *object,
if (priv->n_remaining_items == 0) {
decorator_finish (decorator);
decorator_rebuild_cache (decorator);
if (priv->n_updates == 0)
decorator_rebuild_cache (decorator);
} else if (g_queue_is_empty (&priv->item_cache) &&
g_hash_table_size (priv->tasks) == 0 &&
(!priv->sparql_buffer || !priv->commit_buffer)) {
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