[gnome-photos/wip/rishi/online-miners: 10/16] tracker-queue: Shuffle some code around




commit 8769a587bf346486fd3afafe9c93fffa15751b2a
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Apr 4 00:51:57 2021 +0200

    tracker-queue: Shuffle some code around
    
    This will make the subsequent commit easier to read.
    
    https://gitlab.gnome.org/GNOME/gnome-photos/-/issues/83

 src/photos-tracker-queue.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-tracker-queue.c b/src/photos-tracker-queue.c
index 7e209ab9..a0f93dc2 100644
--- a/src/photos-tracker-queue.c
+++ b/src/photos-tracker-queue.c
@@ -292,6 +292,8 @@ photos_tracker_queue_initable_init (GInitable *initable, GCancellable *cancellab
 
   g_assert_no_error (self->initialization_error);
 
+  ontology = tracker_sparql_get_ontology_nepomuk ();
+
   /* Same flags that tracker-miner-fs uses by default. See:
    * https://gitlab.gnome.org/GNOME/tracker-miners/-/blob/master/src/miners/fs/tracker-main.c and
    * https://gitlab.gnome.org/GNOME/tracker-miners/-/blob/master/data/org.freedesktop.Tracker.FTS.gschema.xml
@@ -305,8 +307,6 @@ photos_tracker_queue_initable_init (GInitable *initable, GCancellable *cancellab
   store_private = g_file_new_build_filename (data_dir, PACKAGE_TARNAME, "tracker3", "private", NULL);
   store_private_path = g_file_peek_path (store_private);
 
-  ontology = tracker_sparql_get_ontology_nepomuk ();
-
   photos_debug (PHOTOS_DEBUG_TRACKER, "Opening private database at %s", store_private_path);
 
   self->connection_private = tracker_sparql_connection_new (tracker_flags,


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