[tracker/lru-stmt-cache] tracker-store: Use private threads for the query thread pool



commit 0c8b4d751ff2d94b4d3cd647266120a86805032b
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]