[tracker] libtracker-miner: Do not ignore DELETED event for IgnoreNextUpdate
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Do not ignore DELETED event for IgnoreNextUpdate
- Date: Wed, 6 Apr 2011 11:08:46 +0000 (UTC)
commit 95415498ed499070e51b0fbe0d93437c27577217
Author: Jürg Billeter <j bitron ch>
Date: Wed Apr 6 12:40:47 2011 +0200
libtracker-miner: Do not ignore DELETED event for IgnoreNextUpdate
We should never see DELETED on update (atomic rename or in-place
update) but we may see DELETED due to actual file deletion right
after update.
Fixes NB#229461.
src/libtracker-miner/tracker-miner-fs.c | 18 ++++--------------
1 files changed, 4 insertions(+), 14 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index cfe84da..73b41e5 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2373,20 +2373,10 @@ item_queue_get_next_file (TrackerMinerFS *fs,
trace_eq_pop_head ("DELETED", queue_file);
- /* TODO: Really check whether this makes sense... do
- * we really need to fully ignore the Delete event
- * and treat it as a IgnoreNextUpdate? */
- if (check_ignore_next_update (fs, queue_file)) {
- gchar *uri;
-
- uri = g_file_get_uri (queue_file);
- g_debug ("DELETED event ignored on file '%s', "
- " processing as IgnoreNextUpdate...",
- uri);
- g_free (uri);
-
- return QUEUE_IGNORE_NEXT_UPDATE;
- }
+ /* Do not ignore DELETED event even if file is marked as
+ IgnoreNextUpdate. We should never see DELETED on update
+ (atomic rename or in-place update) but we may see DELETED
+ due to actual file deletion right after update. */
/* If the same item OR its first parent is currently being processed,
* we need to wait for this event */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]