[tracker/miner-fs-limit-requests: 5/7] libtracker-miner: Put together sparql buffer reset code
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-limit-requests: 5/7] libtracker-miner: Put together sparql buffer reset code
- Date: Mon, 21 Mar 2011 09:32:33 +0000 (UTC)
commit cd30f606f262f2ca90ce024bd25f02da5ec7b6ba
Author: Aleksander Morgado <aleksander lanedo com>
Date: Thu Mar 17 17:00:32 2011 +0100
libtracker-miner: Put together sparql buffer reset code
.../tracker-miner-fs-processing-pool.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs-processing-pool.c b/src/libtracker-miner/tracker-miner-fs-processing-pool.c
index 35f255d..5e176a3 100644
--- a/src/libtracker-miner/tracker-miner-fs-processing-pool.c
+++ b/src/libtracker-miner/tracker-miner-fs-processing-pool.c
@@ -985,18 +985,16 @@ tracker_processing_pool_buffer_flush (TrackerProcessingPool *pool,
update_data->error_map = error_map;
update_data->sparql_array = sparql_array;
- /* Reset buffer in the pool */
+ /* Reset buffer and current parent in the pool */
pool->sparql_buffer = NULL;
pool->sparql_buffer_start_time = 0;
-
- /* Flush or queue... */
- processing_pool_update_array_flush (pool, update_data, reason);
-
- /* Clear current parent */
if (pool->sparql_buffer_current_parent) {
g_object_unref (pool->sparql_buffer_current_parent);
pool->sparql_buffer_current_parent = NULL;
}
+
+ /* Flush or queue... */
+ processing_pool_update_array_flush (pool, update_data, reason);
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]