[tracker/rss-enclosures] tracker-store: Use private threads for the query thread pool



commit 303e22729829c3bcd7eb66c06d2e6e9ae763e0ca
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]