Commit 9ab886dd authored by Carlos Garnacho's avatar Carlos Garnacho

tracker-miner-fs: Drop dataSource deletion on attribute updates

This was the wrong place to do it in the first place. Now process_file
will use tracker_resource_set_uri() with nie:dataSource, which will
replace all existing nie:dataSource elements and trigger re-extraction
when files actually changed, not just their attributes.
parent 805e2e24
......@@ -2569,18 +2569,6 @@ process_file_attributes_cb (GObject *object,
tracker_sparql_builder_graph_close (sparql);
tracker_sparql_builder_insert_close (sparql);
/* Delete data sources from other miners/decorators */
tracker_sparql_builder_delete_open (sparql, NULL);
tracker_sparql_builder_subject_iri (sparql, urn);
tracker_sparql_builder_predicate (sparql, "nie:dataSource");
tracker_sparql_builder_object_variable (sparql, "datasource");
tracker_sparql_builder_delete_close (sparql);
tracker_sparql_builder_where_open (sparql);
tracker_sparql_builder_subject_iri (sparql, urn);
tracker_sparql_builder_predicate (sparql, "nie:dataSource");
tracker_sparql_builder_object_variable (sparql, "datasource");
tracker_sparql_builder_where_close (sparql);
g_object_unref (file_info);
g_free (uri);
......
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