[tracker/sam/fix-load: 3/3] cli: Create read/write connection for tracker-sparql
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/fix-load: 3/3] cli: Create read/write connection for tracker-sparql
- Date: Tue, 10 Mar 2020 00:24:25 +0000 (UTC)
commit 734965113785b71f336798ff75b953f1e6e08a1e
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker/tracker-sparql.c b/src/tracker/tracker-sparql.c
index f1c892abe..736c7581d 100644
--- a/src/tracker/tracker-sparql.c
+++ b/src/tracker/tracker-sparql.c
@@ -173,7 +173,7 @@ 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,
+ return tracker_sparql_connection_new (TRACKER_SPARQL_CONNECTION_FLAGS_NONE,
file, NULL, 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]