[tracker/tracker-0.10] libtracker-miner: Put together sparql buffer reset code
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-miner: Put together sparql buffer reset code
- Date: Wed, 20 Apr 2011 15:35:06 +0000 (UTC)
commit 24bf2a2b851f79761fe61b4b0e07c355bf47e2bc
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]