[tracker/miner-fs-refactor-multi-insert: 4/16] libtracker-miner: Fix queue looping in processing pool



commit 2b266630812441c3cef9d17364ce58432147c424
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Mon Oct 18 09:39:48 2010 +0200

    libtracker-miner: Fix queue looping in processing pool

 .../tracker-miner-fs-processing-pool.c             |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs-processing-pool.c b/src/libtracker-miner/tracker-miner-fs-processing-pool.c
index 2065d4e..89a16f5 100644
--- a/src/libtracker-miner/tracker-miner-fs-processing-pool.c
+++ b/src/libtracker-miner/tracker-miner-fs-processing-pool.c
@@ -327,7 +327,7 @@ processing_pool_find_task (ProcessingPool *pool,
 	guint i;
 
 	for (i = PROCESSING_TASK_STATUS_WAIT;
-	     i < PROCESSING_TASK_STATUS_PROCESS;
+	     i < PROCESSING_TASK_STATUS_LAST;
 	     i++) {
 		GList *l;
 
@@ -635,7 +635,7 @@ processing_pool_foreach (ProcessingPool *pool,
 	guint i;
 
 	for (i = PROCESSING_TASK_STATUS_WAIT;
-	     i < PROCESSING_TASK_STATUS_PROCESS;
+	     i < PROCESSING_TASK_STATUS_LAST;
 	     i++) {
 		g_queue_foreach (pool->tasks[i], func, user_data);
 	}



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