Fixing number of threads

pull/738/head
René Cannaò 10 years ago
parent accba511ef
commit 0e7df477ec

@ -290,7 +290,7 @@ void ProxySQL_Main_init_Query_module() {
void ProxySQL_Main_init_MySQL_Threads_Handler_module() {
unsigned int i;
GloMTH->init();
load_ = GloMTH->num_threads + 1;
load_ = GloMTH->num_threads * 2 + 1;
for (i=0; i<GloMTH->num_threads; i++) {
GloMTH->create_thread(i,mysql_worker_thread_func, false);
GloMTH->create_thread(i,mysql_worker_thread_func_idles, true);

Loading…
Cancel
Save