[tracker/async-queries-wip: 18/23] Fix fts (__thread yet needs to be replaced by g_private)
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/async-queries-wip: 18/23] Fix fts (__thread yet needs to be replaced by g_private)
- Date: Thu, 15 Apr 2010 12:14:19 +0000 (UTC)
commit 99fb1589533381836ac0cefe191572d40a799fd2
Author: Jürg Billeter <j bitron ch>
Date: Wed Apr 14 14:32:23 2010 +0200
Fix fts (__thread yet needs to be replaced by g_private)
src/libtracker-db/tracker-db-manager.c | 2 ++
src/libtracker-fts/tracker-fts.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-manager.c b/src/libtracker-db/tracker-db-manager.c
index 30b96f2..4dc776f 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -1318,6 +1318,8 @@ interface_pool_dispatch_cb (gpointer data,
TRACKER_DB_CONTENTS);
//interface = g_object_ref (resources_iface);
+ tracker_db_interface_sqlite_fts_init (TRACKER_DB_INTERFACE_SQLITE (interface), TRUE);
+
g_static_private_set (&interface_data_key,
interface,
(GDestroyNotify) g_object_unref);
diff --git a/src/libtracker-fts/tracker-fts.c b/src/libtracker-fts/tracker-fts.c
index 1b18aa4..0acd231 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -2128,7 +2128,7 @@ static int sql_prepare(sqlite3 *db, const char *zDb, const char *zName,
/* Forward reference */
typedef struct fulltext_vtab fulltext_vtab;
-static fulltext_vtab *tracker_fts_vtab = NULL;
+static __thread fulltext_vtab *tracker_fts_vtab = NULL;
static TrackerFtsMapFunc map_function = NULL;
/* A single term in a query is represented by an instances of
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]