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



commit 2572f96f96e5cd44910391823505b37e1f40d08d
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 d61812a..47e583b 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2284,7 +2284,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;
 		}
 
@@ -2365,7 +2365,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;
 		}
 
@@ -2404,7 +2404,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;
 		}
 
@@ -2448,7 +2448,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]