[tracker] libtracker-data: Preserve ontology journal writer for a bit longer
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Preserve ontology journal writer for a bit longer
- Date: Sun, 9 Jul 2017 22:12:33 +0000 (UTC)
commit c7df0c91933adaeacd55e9e5630c3fec43949fb8
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jul 5 10:51:38 2017 +0200
libtracker-data: Preserve ontology journal writer for a bit longer
It's destroyed far too soon if the ontology needs rebuilding.
src/libtracker-data/tracker-data-manager.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index bc077fc..e7881a2 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -4047,11 +4047,6 @@ tracker_data_manager_initable_init (GInitable *initable,
/* First time, no need to check ontology */
check_ontology = FALSE;
-
-#ifndef DISABLE_JOURNAL
- tracker_db_journal_free (manager->ontology_writer, NULL);
- manager->ontology_writer = NULL;
-#endif /* DISABLE_JOURNAL */
} else {
if (!read_only) {
@@ -4518,6 +4513,13 @@ skip_ontology_check:
#endif
}
+#ifndef DISABLE_JOURNAL
+ if (manager->ontology_writer) {
+ tracker_db_journal_free (manager->ontology_writer, NULL);
+ manager->ontology_writer = NULL;
+ }
+#endif /* DISABLE_JOURNAL */
+
if (!read_only) {
tracker_ontologies_sort (manager->ontologies);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]