[tracker-miners/wip/carlosg/speed-track: 18/40] libtracker-miner: Drop invalidation of file IRIS in TrackerFileNotifier
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/speed-track: 18/40] libtracker-miner: Drop invalidation of file IRIS in TrackerFileNotifier
- Date: Sun, 18 Oct 2020 20:58:43 +0000 (UTC)
commit 2ee423fcaa7b389f613c9773d812e89646d1bd11
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Oct 4 22:39:05 2020 +0200
libtracker-miner: Drop invalidation of file IRIS in TrackerFileNotifier
This is going unused, replaced by the TrackerMinerFS LRU. We can remove
this in advance.
src/libtracker-miner/tracker-miner-fs.c | 13 -------------
1 file changed, 13 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index f4bc4ff56..82566d915 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -125,9 +125,6 @@ struct _TrackerMinerFSPrivate {
TrackerSparqlStatement *urn_query;
TrackerLRU *urn_lru;
- /* File properties */
- GQuark quark_recursive_removal;
-
/* Properties */
gdouble throttle;
@@ -572,8 +569,6 @@ tracker_miner_fs_init (TrackerMinerFS *object)
g_signal_connect (priv->task_pool, "notify::limit-reached",
G_CALLBACK (task_pool_limit_reached_notify_cb), object);
- priv->quark_recursive_removal = g_quark_from_static_string ("tracker-recursive-removal");
-
priv->roots_to_notify = g_hash_table_new_full (g_file_hash,
(GEqualFunc) g_file_equal,
g_object_unref,
@@ -1216,7 +1211,6 @@ sparql_buffer_task_finished_cb (GObject *object,
TrackerMinerFSPrivate *priv;
TrackerTask *task;
GFile *task_file;
- gboolean recursive;
GError *error = NULL;
fs = user_data;
@@ -1235,9 +1229,6 @@ sparql_buffer_task_finished_cb (GObject *object,
}
tracker_error_report_delete (task_file);
- recursive = GPOINTER_TO_INT (g_object_steal_qdata (G_OBJECT (task_file),
- priv->quark_recursive_removal));
- tracker_file_notifier_invalidate_file_iri (priv->file_notifier, task_file, recursive);
if (item_queue_is_blocked_by_file (fs, task_file)) {
g_object_unref (priv->item_queue_blocker);
@@ -1446,10 +1437,6 @@ item_remove (TrackerMinerFS *fs,
TRACKER_NOTE (MINER_FS_EVENTS,
g_message ("Removing item: '%s' (Deleted from filesystem or no longer monitored)",
uri));
- g_object_set_qdata (G_OBJECT (file),
- fs->priv->quark_recursive_removal,
- GINT_TO_POINTER (TRUE));
-
tracker_lru_remove_foreach (fs->priv->urn_lru,
(GEqualFunc) g_file_has_parent,
file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]