[tracker/sam/fix-load: 6/6] cli: Create read/write connection for tracker-sparql



commit b86b79e49393f8144c218ee7e8f201b5fa3955a3
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Mar 9 23:15:24 2020 +0100

    cli: Create read/write connection for tracker-sparql
    
    Otherwise, update commands will fail with this kind of error:
    
            Tracker-CRITICAL **: 23:00:48.639: Could not ensure resource existence: attempt to write a 
readonly database

 src/tracker/tracker-sparql.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker/tracker-sparql.c b/src/tracker/tracker-sparql.c
index 55e77ef8c..5e3870427 100644
--- a/src/tracker/tracker-sparql.c
+++ b/src/tracker/tracker-sparql.c
@@ -173,8 +173,8 @@ create_connection (GError **error)
                GFile *file;
 
                file = g_file_new_for_commandline_arg (database_path);
-               return tracker_sparql_connection_new (TRACKER_SPARQL_CONNECTION_FLAGS_READONLY,
-                                                     file, error);
+               return tracker_sparql_connection_new (TRACKER_SPARQL_CONNECTION_FLAGS_NONE,
+                                                     file, NULL, error);
        } else if (dbus_service && !database_path && !remote_service) {
                GDBusConnection *dbus_conn;
 


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