[tracker/miner-priority-queues-0.10] libtracker-miner: don't clamp priority in the TrackerPriorityQueue



commit 9a716cf7a2fb82b24d90bbc4d0802a73e2d9f7bc
Author: Carlos Garnacho <carlos lanedo com>
Date:   Thu Jul 21 17:27:22 2011 +0200

    libtracker-miner: don't clamp priority in the TrackerPriorityQueue
    
    This is so the miner can indefinitely force prepend of a task

 src/libtracker-miner/tracker-priority-queue.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-priority-queue.c b/src/libtracker-miner/tracker-priority-queue.c
index 01e637e..a882c0a 100644
--- a/src/libtracker-miner/tracker-priority-queue.c
+++ b/src/libtracker-miner/tracker-priority-queue.c
@@ -259,9 +259,6 @@ tracker_priority_queue_add (TrackerPriorityQueue *queue,
 	g_return_if_fail (queue != NULL);
 	g_return_if_fail (data != NULL);
 
-	/* clamp on G_PRIORITY_HIGH, to avoid much greediness */
-	priority = MAX (priority, G_PRIORITY_HIGH);
-
 	node = priority_segment_alloc_node (queue, priority);
 	g_assert (node != NULL);
 



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