Commit 464e08c6 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Wait for the sparql buffer to be full before flush

It does not make sense to preempt flush, with the changes that are going
to come.
parent a913c4d3
......@@ -417,9 +417,6 @@ sparql_buffer_push_to_pool (TrackerSparqlBuffer *buffer,
if (tracker_task_pool_limit_reached (TRACKER_TASK_POOL (buffer))) {
tracker_sparql_buffer_flush (buffer, "SPARQL buffer limit reached");
} else if (priv->tasks->len > tracker_task_pool_get_limit (TRACKER_TASK_POOL (buffer)) / 2) {
/* We've filled half of the buffer, flush it as we receive more tasks */
tracker_sparql_buffer_flush (buffer, "SPARQL buffer half-full");
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