Skip to content

Commit

Permalink
Typo from wrong commit
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Nov 14, 2016
1 parent ffa266e commit 56ec512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MySQL_Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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; ims<resume_mysql_sessions->len; ims++) {
MySQL_Session *mysess=(MySQL_Session *)resume_mysql_sessions->remove_index_fast(0);
thr->myexchange.resume_mysql_sessions->add(mysess);
Expand Down

0 comments on commit 56ec512

Please sign in to comment.