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




commit dec0bd1c3628699f6bb121ad89db3799e9b06f36
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 be6423d85..f1b5c7cf8 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;
@@ -2133,11 +2132,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]