[tracker/wip/carlosg/update-perf: 25/61] libtracker-sparql/core: Do not store graph ID in update machinery




commit 0b58d4f54b798e9dbb2a797aec2cbd54af0ba6f4
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Jul 30 12:18:34 2022 +0200

    libtracker-sparql/core: Do not store graph ID in update machinery
    
    This is no longer used, so we can avoid keeping it around.

 src/libtracker-sparql/core/tracker-data-update.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/libtracker-sparql/core/tracker-data-update.c 
b/src/libtracker-sparql/core/tracker-data-update.c
index e236a71dd..b0980ae66 100644
--- a/src/libtracker-sparql/core/tracker-data-update.c
+++ b/src/libtracker-sparql/core/tracker-data-update.c
@@ -60,7 +60,6 @@ struct _TrackerDataUpdateBuffer {
 
 struct _TrackerDataUpdateBufferGraph {
        gchar *graph;
-       TrackerRowid id;
 
        /* id -> TrackerDataUpdateBufferResource */
        GHashTable *resources;
@@ -2131,11 +2130,6 @@ ensure_graph_buffer (TrackerDataUpdateBuffer  *buffer,
                g_hash_table_new_full (tracker_rowid_hash, tracker_rowid_equal,
                                       (GDestroyNotify) tracker_rowid_free, NULL);
        graph_buffer->graph = g_strdup (name);
-       if (graph_buffer->graph) {
-               graph_buffer->id = tracker_data_manager_find_graph (data->manager,
-                                                                   graph_buffer->graph,
-                                                                   TRUE);
-       }
 
        graph_buffer->resources =
                g_hash_table_new_full (tracker_rowid_hash, tracker_rowid_equal, NULL,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]