[tracker] libtracker-data: Update FTS if base tables were altered
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Update FTS if base tables were altered
- Date: Tue, 18 Dec 2018 11:28:23 +0000 (UTC)
commit 70758fc059e91936e88d5264b195ac291e995144
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Dec 17 13:34:23 2018 +0100
libtracker-data: Update FTS if base tables were altered
That will issue an update of all tables, so the FTS view might be
affected. This is not caught by ontology change tests, as this
is a situation that can only happen when migrating from 1.x databases
ATM.
src/libtracker-data/tracker-data-manager.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index c467096c5..e7acab22e 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -3702,8 +3702,8 @@ tracker_data_ontology_import_into_db (TrackerDataManager *manager,
}
#if HAVE_TRACKER_FTS
- if (in_update) {
- update_fts = tracker_data_manager_fts_changed (manager);
+ if (base_tables_altered || in_update) {
+ update_fts = base_tables_altered | tracker_data_manager_fts_changed (manager);
if (update_fts)
tracker_db_interface_sqlite_fts_delete_table (iface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]