[tracker/lru-stmt-cache: 5/7] libtracker-data: Fix crash when first query thread is created
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/lru-stmt-cache: 5/7] libtracker-data: Fix crash when first query thread is created
- Date: Thu, 23 Sep 2010 08:50:52 +0000 (UTC)
commit 719e2adc6ce204d532dbbab689531ef107c5962e
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]