[tracker] libtracker-miner: Use the interned GFile with tracker_file_system_forget_files()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Use the interned GFile with tracker_file_system_forget_files()
- Date: Mon, 15 Feb 2016 17:04:00 +0000 (UTC)
commit c815b224c00b9ec9ca1f2dbf862befb99de395b8
Author: Haithem BEN GHORBAL <haithem benghorbal gmail com>
Date: Thu Feb 11 12:40:30 2016 +0100
libtracker-miner: Use the interned GFile with tracker_file_system_forget_files()
This allow the correponding node to be retrieved from g_object_get_qdata()
instead of traversing all the tree, which might imply a performance hit.
src/libtracker-miner/tracker-file-notifier.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 3e5452b..d4d8ba8 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -1166,7 +1166,7 @@ monitor_item_deleted_cb (TrackerMonitor *monitor,
/* Remove the file from the cache (works recursively for directories) */
tracker_file_system_forget_files (priv->file_system,
- file,
+ canonical,
G_FILE_TYPE_UNKNOWN);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]