[tracker/rss-enclosures] libtracker-data: Fix crash when first query thread is created
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-data: Fix crash when first query thread is created
- Date: Wed, 24 Nov 2010 01:50:24 +0000 (UTC)
commit d0ec35504c6499ba67bd39a1469139d1e85f9200
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Sep 22 14:49:54 2010 +0200
libtracker-data: Fix crash when first query thread is created
src/libtracker-data/tracker-db-manager.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 10d40c3..5664a4e 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -1406,6 +1406,15 @@ tracker_db_manager_get_db_interface (void)
tracker_db_interface_sqlite_fts_init (interface, FALSE);
+
+ tracker_db_interface_set_max_stmt_cache_size (interface,
+ TRACKER_DB_STATEMENT_CACHE_TYPE_SELECT,
+ s_cache_size);
+
+ tracker_db_interface_set_max_stmt_cache_size (interface,
+ TRACKER_DB_STATEMENT_CACHE_TYPE_UPDATE,
+ u_cache_size);
+
g_static_private_set (&interface_data_key, interface, (GDestroyNotify) g_object_unref);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]