[tracker/miner-fs-refactor: 58/119] libtracker-miner: Ensure the right	processing order on QUEUE_WAIT situations
- From: Carlos Garnacho <carlosg src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [tracker/miner-fs-refactor: 58/119] libtracker-miner: Ensure the right	processing order on QUEUE_WAIT situations
 
- Date: Mon, 28 Nov 2011 13:01:17 +0000 (UTC)
 
commit ab389a0e7c0ac8fe78ff984ceb111dadfd909b97
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]