[tracker: 8/9] tracker-data-manager: Do not create indexes twice
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 8/9] tracker-data-manager: Do not create indexes twice
- Date: Sun, 9 May 2021 11:33:36 +0000 (UTC)
commit 3ee3254762c147ea13cc99dfd37ef677c92d14f8
Author: Daniele Nicolodi <daniele grinta net>
Date: Tue May 4 10:59:08 2021 +0200
tracker-data-manager: Do not create indexes twice
The create_docomposed_metadata_property_table() function drops and
recreates the indexes twice AFAICT there is no reason to do
that. Drop one occurrence of set_index_for_multi_value_property().
src/libtracker-data/tracker-data-manager.c | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 9b541d083..b2e774ee8 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -2624,13 +2624,6 @@ create_decomposed_metadata_property_table (TrackerDBInterface *iface,
goto error_out;
}
- /* multiple values */
- set_index_for_multi_value_property (iface, database, service, property, &internal_error);
- if (internal_error) {
- g_propagate_error (error, internal_error);
- goto error_out;
- }
-
if (in_change && !tracker_property_get_is_new (property) &&
!tracker_property_get_cardinality_changed (property) && in_col_sql && sel_col_sql) {
gchar *query;
@@ -2658,7 +2651,6 @@ create_decomposed_metadata_property_table (TrackerDBInterface *iface,
}
}
- /* multiple values */
set_index_for_multi_value_property (iface, database, service, property, &internal_error);
if (internal_error) {
g_propagate_error (error, internal_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]