[tracker/miner-fs-limit-requests: 5/7] libtracker-miner: Put together sparql buffer reset code
- From: Martyn James Russell <mr 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: Tue, 19 Apr 2011 10:21:52 +0000 (UTC)
commit 9867a3fd7d34b562277508c854d5e1384b2d0ed5
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]