[tracker/lru-stmt-cache: 6/7] tracker-store: Use private threads for the query thread pool
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/lru-stmt-cache: 6/7] tracker-store: Use private threads for the query thread pool
- Date: Thu, 23 Sep 2010 08:50:57 +0000 (UTC)
commit f8872fe1202318bfa2c45a1c6f2f566991c95022
Author: Jürg Billeter <j bitron ch>
Date: Wed Sep 22 17:19:06 2010 +0200
tracker-store: Use private threads for the query thread pool
Database connections can use quite a bit of memory as neither page nor
statement cache is shared between connections. Use private threads to
make sure we do not lose that memory due to the thread being reused in
an other thread pool.
src/tracker-store/tracker-store.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-store/tracker-store.c b/src/tracker-store/tracker-store.c
index 7d10695..1403d70 100644
--- a/src/tracker-store/tracker-store.c
+++ b/src/tracker-store/tracker-store.c
@@ -416,7 +416,7 @@ tracker_store_init (void)
TRUE, NULL);
private->query_pool = g_thread_pool_new (pool_dispatch_cb,
private, TRACKER_STORE_MAX_CONCURRENT_QUERIES,
- FALSE, NULL);
+ TRUE, NULL);
/* as the following settings are global for unknown reasons,
let's use the same settings as gio, otherwise the used settings
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]