[tracker] libtracker-miner: Remove GFile from cache regardless of file/dir difference
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Remove GFile from cache regardless of file/dir difference
- Date: Tue, 12 Mar 2013 17:55:34 +0000 (UTC)
commit 81d549f1392b61898ba6b10d5e569e06fc26de24
Author: Martin Kampas <martin kampas+gnomebugs ubedi net>
Date: Tue Mar 12 17:52:10 2013 +0000
libtracker-miner: Remove GFile from cache regardless of file/dir difference
This works recursively for directories
Part 2 of 2 for this bug:
https://bugzilla.gnome.org/show_bug.cgi?id=643388
src/libtracker-miner/tracker-file-notifier.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 75ab022..ff9b971 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -840,12 +840,10 @@ monitor_item_deleted_cb (TrackerMonitor *monitor,
file, file_type, NULL);
g_signal_emit (notifier, signals[FILE_DELETED], 0, canonical);
- if (is_directory) {
- /* Remove all files underneath this dir from the cache */
- tracker_file_system_forget_files (priv->file_system,
- file,
- G_FILE_TYPE_UNKNOWN);
- }
+ /* Remove the file from the cache (works recursively for directories) */
+ tracker_file_system_forget_files (priv->file_system,
+ file,
+ G_FILE_TYPE_UNKNOWN);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]