[tracker-miners/wip/carlosg/leak-fixes: 3/5] libtracker-miner: Deem all files "regular" in TrackerFileSystem
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/leak-fixes: 3/5] libtracker-miner: Deem all files "regular" in TrackerFileSystem
- Date: Wed, 5 Aug 2020 10:20:14 +0000 (UTC)
commit 1a72f693b1ef44ce4d5a261af1ff9e68813016e7
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Aug 5 12:06:28 2020 +0200
libtracker-miner: Deem all files "regular" in TrackerFileSystem
We just care of the distinction between directories and non directories
here. This would stir some confusion with special files, where they
wouldn't be properly forgotten on forget().
src/libtracker-miner/tracker-file-system.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libtracker-miner/tracker-file-system.c b/src/libtracker-miner/tracker-file-system.c
index 2a239a3e6..b9ddb0f96 100644
--- a/src/libtracker-miner/tracker-file-system.c
+++ b/src/libtracker-miner/tracker-file-system.c
@@ -544,6 +544,9 @@ tracker_file_system_get_file (TrackerFileSystem *file_system,
node = NULL;
lookup_data = g_object_get_qdata (G_OBJECT (file), quark_file_node);
+ if (file_type != G_FILE_TYPE_DIRECTORY)
+ file_type = G_FILE_TYPE_REGULAR;
+
/* If file is interned somewhere else, get a separate copy of the
* file for this filesystem.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]