[tracker/wip/carlosg/update-perf: 22/72] libtracker-sparql: Use TrackerRowid in FTS functions




commit e2d61a450ef843927c55f03998c8c76cb2153f0e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu May 19 12:47:21 2022 +0200

    libtracker-sparql: Use TrackerRowid in FTS functions
    
    These functions were still taking a gint for row IDs, but these are 64bit wide.

 src/libtracker-sparql/core/tracker-db-interface-sqlite.c | 4 ++--
 src/libtracker-sparql/core/tracker-db-interface-sqlite.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-sparql/core/tracker-db-interface-sqlite.c 
b/src/libtracker-sparql/core/tracker-db-interface-sqlite.c
index 04c9a79b8..803698652 100644
--- a/src/libtracker-sparql/core/tracker-db-interface-sqlite.c
+++ b/src/libtracker-sparql/core/tracker-db-interface-sqlite.c
@@ -2367,7 +2367,7 @@ tracker_db_interface_sqlite_fts_create_update_query (TrackerDBInterface  *db_int
 gboolean
 tracker_db_interface_sqlite_fts_update_text (TrackerDBInterface  *db_interface,
                                              const gchar         *database,
-                                             int                  id,
+                                             TrackerRowid         id,
                                              const gchar        **properties)
 {
        TrackerDBStatement *stmt;
@@ -2438,7 +2438,7 @@ tracker_db_interface_sqlite_fts_create_delete_query (TrackerDBInterface  *db_int
 gboolean
 tracker_db_interface_sqlite_fts_delete_text (TrackerDBInterface  *db_interface,
                                              const gchar         *database,
-                                             int                  rowid,
+                                             TrackerRowid         rowid,
                                              const gchar        **properties)
 {
        TrackerDBStatement *stmt;
diff --git a/src/libtracker-sparql/core/tracker-db-interface-sqlite.h 
b/src/libtracker-sparql/core/tracker-db-interface-sqlite.h
index 1a892eace..ea7d64af7 100644
--- a/src/libtracker-sparql/core/tracker-db-interface-sqlite.h
+++ b/src/libtracker-sparql/core/tracker-db-interface-sqlite.h
@@ -69,12 +69,12 @@ gboolean            tracker_db_interface_sqlite_fts_alter_table        (TrackerD
                                                                         GError                  **error);
 gboolean            tracker_db_interface_sqlite_fts_update_text        (TrackerDBInterface       
*db_interface,
                                                                         const gchar              *database,
-                                                                       int                       id,
+                                                                        TrackerRowid              id,
                                                                         const gchar             
**properties);
 
 gboolean            tracker_db_interface_sqlite_fts_delete_text        (TrackerDBInterface       *interface,
                                                                         const gchar              *database,
-                                                                        int                       rowid,
+                                                                        TrackerRowid              rowid,
                                                                         const gchar             
**properties);
 gboolean            tracker_db_interface_sqlite_fts_rebuild_tokens     (TrackerDBInterface       *interface,
                                                                         const gchar              *database,


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