[tracker] libtracker-fts: Skip loading the FTS module if sqlite has it builtin
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-fts: Skip loading the FTS module if sqlite has it builtin
- Date: Sat, 1 Jul 2017 14:12:23 +0000 (UTC)
commit d47d413484c614cfe3f1400ff784449734307eb1
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jul 1 16:10:10 2017 +0200
libtracker-fts: Skip loading the FTS module if sqlite has it builtin
It is unneeded, and the missing symbol will be treated as a fatal error.
src/libtracker-fts/tracker-fts.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-fts.c b/src/libtracker-fts/tracker-fts.c
index b3c8645..3c550ca 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -62,12 +62,14 @@ tracker_fts_init_db (sqlite3 *db,
{
gchar **property_names;
gboolean retval;
+#ifndef HAVE_BUILTIN_FTS
gchar *err;
if (sqlite3_load_extension (db, NULL, "sqlite3_fts5_init", &err) != SQLITE_OK) {
g_warning ("Could not load fts5 module: %s", err);
return FALSE;
}
+#endif
property_names = get_fts_properties (tables);
retval = tracker_tokenizer_initialize (db, interface, (const gchar **) property_names);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]