[tracker/wip/carlosg/domain-ontologies: 101/116] libtracker-sparql-backend: Ensure we always load the bus connection first
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/domain-ontologies: 101/116] libtracker-sparql-backend: Ensure we always load the bus connection first
- Date: Sun, 25 Jun 2017 13:13:38 +0000 (UTC)
commit 760ec6ee46bc980014d515f4a2659ae954cff7fc
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jun 21 17:49:56 2017 +0200
libtracker-sparql-backend: Ensure we always load the bus connection first
Otherwise the database might not be created yet when creating the direct
connection.
src/libtracker-sparql-backend/tracker-backend.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-sparql-backend/tracker-backend.vala
b/src/libtracker-sparql-backend/tracker-backend.vala
index 4f59d00..d58d91d 100644
--- a/src/libtracker-sparql-backend/tracker-backend.vala
+++ b/src/libtracker-sparql-backend/tracker-backend.vala
@@ -185,13 +185,14 @@ class Tracker.Sparql.Backend : Connection {
switch (backend) {
case Backend.AUTO:
+ bus = new Tracker.Bus.Connection (domain_ontology.get_domain ());
+
try {
direct = create_readonly_direct ();
} catch (Error e) {
warning ("Falling back to bus backend, the direct backend failed to
initialize: " + e.message);
}
- bus = new Tracker.Bus.Connection (domain_ontology.get_domain ());
break;
case Backend.DIRECT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]