[tracker] libtracker-data: Do not reuse TrackerDBInterface used for DB checks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Do not reuse TrackerDBInterface used for DB checks
- Date: Sat, 15 Jul 2017 14:44:12 +0000 (UTC)
commit 5c618272697f5821e368a64531b6d5733dffc9bc
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jul 15 16:26:51 2017 +0200
libtracker-data: Do not reuse TrackerDBInterface used for DB checks
It is just too soon to let it initialize like the others, just drop it
and let the TrackerDBManager create proper ones on demand. Fixes possible
crashes on FTS because the TrackerOntology is still empty, so the
TrackerDBInterface ends up with 0 cached FTS properties.
https://bugzilla.gnome.org/show_bug.cgi?id=784926
src/libtracker-data/tracker-db-manager.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index a1d9899..bb5c37f 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -904,8 +904,7 @@ tracker_db_manager_new (TrackerDBManagerFlags flags,
}
}
- tracker_data_manager_init_fts (resources_iface, FALSE);
- g_async_queue_push (db_manager->interfaces, resources_iface);
+ g_clear_object (&resources_iface);
return db_manager;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]