[tracker/miner-fs-refactor: 58/110] 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/110] libtracker-miner: Ensure the right processing order on QUEUE_WAIT situations
- Date: Wed, 2 Nov 2011 12:32:53 +0000 (UTC)
commit 38a480afcb71eab05ff1d7aee01a17634fd7c071
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 929cd05..dc57d44 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2285,7 +2285,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;
}
@@ -2366,7 +2366,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;
}
@@ -2405,7 +2405,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;
}
@@ -2449,7 +2449,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]