[tracker: 4/8] update ontology last modified field inside the ontology transaction
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 4/8] update ontology last modified field inside the ontology transaction
- Date: Thu, 12 Aug 2021 15:02:24 +0000 (UTC)
commit 1f3416d587d466682e6cd7f2c6a8d805a0a673cf
Author: Abanoub Ghadban <abanoub gdb gmail com>
Date: Thu Aug 5 17:50:15 2021 +0200
update ontology last modified field inside the ontology transaction
src/libtracker-data/tracker-data-manager.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index c3645357e..89deafc42 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -3932,13 +3932,6 @@ tracker_data_manager_initable_init (GInitable *initable,
import_ontology_file (manager, l->data, FALSE);
}
- tracker_data_commit_transaction (manager->data_update, &internal_error);
-
- if (internal_error) {
- g_propagate_error (error, internal_error);
- goto rollback_newly_created_db;
- }
-
write_ontologies_gvdb (manager, TRUE /* overwrite */, NULL);
ontologies = tracker_ontologies_get_ontologies (manager->ontologies, &n_ontologies);
@@ -3954,6 +3947,13 @@ tracker_data_manager_initable_init (GInitable *initable,
}
}
+ tracker_data_commit_transaction (manager->data_update, &internal_error);
+
+ if (internal_error) {
+ g_propagate_error (error, internal_error);
+ goto rollback_newly_created_db;
+ }
+
g_list_free_full (sorted, g_object_unref);
sorted = NULL;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]