Merge adventure.(none):/home/thek/Development/cpp/bug32436/my51-bug32436

into  adventure.(none):/home/thek/Development/cpp/mysql-5.1-runtime


sql/item_func.cc:
  Auto merged
This commit is contained in:
unknown 2007-11-26 15:59:09 +01:00
commit 1522ef3f21

View File

@ -3721,13 +3721,12 @@ longlong Item_func_sleep::val_int()
break;
error= 0;
}
pthread_mutex_unlock(&LOCK_user_locks);
pthread_mutex_lock(&thd->mysys_var->mutex);
thd->mysys_var->current_mutex= 0;
thd->mysys_var->current_cond= 0;
pthread_mutex_unlock(&thd->mysys_var->mutex);
pthread_mutex_unlock(&LOCK_user_locks);
pthread_cond_destroy(&cond);
return test(!error); // Return 1 killed