[tracker-miners/wip/carlosg/perf-squeeze: 13/16] libtracker-miner: Wait for the sparql buffer to be full before flush
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/perf-squeeze: 13/16] libtracker-miner: Wait for the sparql buffer to be full before flush
- Date: Sun, 5 Jul 2020 14:03:26 +0000 (UTC)
commit 464e08c6f965d0479eeb02bebdb3380222f9f5ee
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jul 4 21:03:14 2020 +0200
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.
src/libtracker-miner/tracker-sparql-buffer.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index f25784d23..51f7fda5c 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -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");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]