From 15e69055a19529a57e47f696996de1000c79fb7d Mon Sep 17 00:00:00 2001 From: "wax@kishkin.ru" <> Date: Sun, 2 Mar 2003 19:35:37 +0500 Subject: [PATCH] URGENT fixed bug in shared memory (handler_count) --- BitKeeper/etc/logging_ok | 1 + sql/mysqld.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/BitKeeper/etc/logging_ok b/BitKeeper/etc/logging_ok index 8fc5509547c..62ae7f6af5b 100644 --- a/BitKeeper/etc/logging_ok +++ b/BitKeeper/etc/logging_ok @@ -107,6 +107,7 @@ vva@eagle.mysql.r18.ru vva@genie.(none) walrus@kishkin.ru walrus@mysql.com +wax@kishkin.ru wax@mysql.com worm@altair.is.lan zak@balfor.local diff --git a/sql/mysqld.cc b/sql/mysqld.cc index ce87a8c15ac..ca0c66c008f 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3346,7 +3346,9 @@ error: if (!event_connect_answer) CloseHandle(event_connect_answer); if (!event_connect_request) CloseHandle(event_connect_request); pthread_mutex_lock(&LOCK_thread_count); + handler_count--; pthread_mutex_unlock(&LOCK_thread_count); + pthread_cond_signal(&COND_handler_count); DBUG_RETURN(0); } #endif /* HAVE_SMEM */