[tracker/miner-fs-refactor-multi-insert: 15/16] libtracker-miner: a task is always given to the async operation



commit c7c84937f37b1f4557b659b5965e0b29c34bbf61
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Thu Oct 21 11:40:40 2010 +0200

    libtracker-miner: a task is always given to the async operation

 .../tracker-miner-fs-processing-pool.c             |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs-processing-pool.c b/src/libtracker-miner/tracker-miner-fs-processing-pool.c
index b288f1e..1395ef7 100644
--- a/src/libtracker-miner/tracker-miner-fs-processing-pool.c
+++ b/src/libtracker-miner/tracker-miner-fs-processing-pool.c
@@ -408,7 +408,7 @@ tracker_processing_pool_find_task (TrackerProcessingPool *pool,
 				 * same GFile object that's being passed, so we check for
 				 * pointer equality here, rather than doing path comparisons
 				 */
-				if(task->file == file)
+				if (task->file == file)
 					return task;
 			} else {
 				/* Note that if there are different GFiles being
@@ -455,10 +455,6 @@ tracker_processing_pool_sparql_update_cb (GObject      *object,
 
 	tracker_sparql_connection_update_finish (TRACKER_SPARQL_CONNECTION (object), result, &error);
 
-	/* If update was done when crawling finished, no task will be given */
-	if (!user_data)
-		return;
-
 	task = user_data;
 
 	trace ("(Processing Pool) Finished update of task %p for file '%s'",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]