Commit c22fdf1f authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Cache GFileInfos from crawler longer

These are stored as GObject data on the GFile, but detached early
on. Keep these tied to the file indefinitely, so they can be used
at later stages in indexing, they will be useful later on.
parent 9487ced5
......@@ -993,6 +993,6 @@ tracker_crawler_get_file_info (TrackerCrawler *crawler,
g_return_val_if_fail (TRACKER_IS_CRAWLER (crawler), NULL);
g_return_val_if_fail (G_IS_FILE (file), NULL);
info = g_object_steal_qdata (G_OBJECT (file), file_info_quark);
info = g_object_get_qdata (G_OBJECT (file), file_info_quark);
return info;
......@@ -419,7 +419,6 @@ file_notifier_add_node_foreach (GNode *node,
file_type = g_file_info_get_file_type (file_info);
_time = g_file_info_get_attribute_uint64 (file_info,
g_object_unref (file_info);
_insert_disk_info (notifier,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment