[tracker] libtracker-miner: Fix flow control in sparql buffer
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Fix flow control in sparql buffer
- Date: Fri, 2 Dec 2011 15:40:22 +0000 (UTC)
commit 5153090b436fa2c0e1cc912aaba37c13f40f773e
Author: Carlos Garnacho <carlos lanedo com>
Date: Fri Dec 2 15:56:01 2011 +0100
libtracker-miner: Fix flow control in sparql buffer
Avoid piling up flush requests of a small number of elements
when we reach a limit, so the buffer is actually filled up for
the next flush.
src/libtracker-miner/tracker-sparql-buffer.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index 18cbaca..441768a 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -507,6 +507,10 @@ tracker_sparql_buffer_flush (TrackerSparqlBuffer *buffer,
priv = buffer->priv;
+ if (priv->n_updates > 0) {
+ return FALSE;
+ }
+
if (!priv->tasks ||
priv->tasks->len == 0) {
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]