[tracker/rss-enclosures] libtracker-miner: Queue deleted items instead of removing in a tight loop.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-miner: Queue deleted items instead of removing in a tight loop.
- Date: Sat, 26 Jun 2010 23:18:36 +0000 (UTC)
commit b9fe190a7f1d7b68a447737775d7a79a7356dd77
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 10 16:18:23 2010 +0200
libtracker-miner: Queue deleted items instead of removing in a tight loop.
src/libtracker-miner/tracker-miner-fs.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 5a1eacd..fda6b04 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2258,9 +2258,16 @@ remove_unexisting_file_cb (gpointer key,
/* If file no longer exists, remove it from the store*/
if (!g_file_query_exists (file, NULL)) {
- g_debug ("Removing file which no longer exists in FS: %s",
- g_file_get_uri (file));
- item_remove (fs, file);
+ gchar *uri;
+
+ uri = g_file_get_uri (file);
+ g_debug ("Marking file which no longer exists in FS for removal: %s", uri);
+ g_free (uri);
+
+ g_queue_push_tail (fs->private->items_deleted,
+ g_object_ref (file));
+
+ item_queue_handlers_set_up (fs);
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]