[tracker/miner-fs-limit-requests] libtracker-miner: Put together sparql buffer reset code



commit ab3d5a46dcd4f6ce712029dcf64a7929d8ce4092
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]