[tracker/miner-fs-refactor: 58/127] libtracker-miner: Ensure the right processing order on QUEUE_WAIT situations



commit a04b00369029206b490d18215ac73e223905d6c5
Author: Carlos Garnacho <carlos lanedo com>
Date:   Mon Oct 3 13:45:05 2011 +0200

    libtracker-miner: Ensure the right processing order on QUEUE_WAIT situations
    
    Ensure the dirs we're waiting for are prepended to the queue, so they're
    processed before any later child.

 src/libtracker-miner/tracker-miner-fs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 232958e..eb7a370 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2307,7 +2307,7 @@ item_queue_get_next_file (TrackerMinerFS  *fs,
 
 			/* Need to postpone event... */
 			tracker_priority_queue_add (fs->priv->items_deleted,
-			                            queue_file, priority);
+			                            queue_file, priority - 1);
 			return QUEUE_WAIT;
 		}
 
@@ -2388,7 +2388,7 @@ item_queue_get_next_file (TrackerMinerFS  *fs,
 
 			/* Need to postpone event... */
 			tracker_priority_queue_add (fs->priv->items_created,
-			                            queue_file, priority);
+			                            queue_file, priority - 1);
 			return QUEUE_WAIT;
 		}
 
@@ -2427,7 +2427,7 @@ item_queue_get_next_file (TrackerMinerFS  *fs,
 
 			/* Need to postpone event... */
 			tracker_priority_queue_add (fs->priv->items_updated,
-			                            queue_file, priority);
+			                            queue_file, priority - 1);
 			return QUEUE_WAIT;
 		}
 
@@ -2471,7 +2471,7 @@ item_queue_get_next_file (TrackerMinerFS  *fs,
 
 			/* Need to postpone event... */
 			tracker_priority_queue_add (fs->priv->items_moved,
-			                            data, priority);
+			                            data, priority - 1);
 			return QUEUE_WAIT;
 		}
 



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