From 56ec512493c1d5d5bbeab4c944f3867583c8c8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 14 Nov 2016 04:35:14 +0000 Subject: [PATCH] Typo from wrong commit --- lib/MySQL_Thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp index 2ea3b9d1b1..afbbf30507 100644 --- a/lib/MySQL_Thread.cpp +++ b/lib/MySQL_Thread.cpp @@ -2092,7 +2092,7 @@ void MySQL_Thread::run() { if (idle_maintenance_thread==false) { int r=rand()%(GloMTH->num_threads); MySQL_Thread *thr=GloMTH->mysql_threads_idles[r].worker; - if (shutdown==0 && thr->shudown==0 idle_mysql_sessions->len) { + if (shutdown==0 && thr->shutdown==0 && idle_mysql_sessions->len) { unsigned int ims=0; //spin_wrlock(&GloMTH->rwlock_idles); pthread_mutex_lock(&thr->myexchange.mutex_idles); @@ -2480,7 +2480,7 @@ void MySQL_Thread::run() { //spin_wrlock(&GloMTH->rwlock_resumes); pthread_mutex_lock(&thr->myexchange.mutex_resumes); unsigned int ims; - if (shutdown==0 && thr->shudown==0) + if (shutdown==0 && thr->shutdown==0) for (ims=0; imslen; ims++) { MySQL_Session *mysess=(MySQL_Session *)resume_mysql_sessions->remove_index_fast(0); thr->myexchange.resume_mysql_sessions->add(mysess);