From 1c84836819b3cfdb8e357896f8b2a3f15e573f9b Mon Sep 17 00:00:00 2001 From: Akira Higuchi Date: Tue, 11 Aug 2015 15:51:54 +0900 Subject: [PATCH] fix that mysqld aborts on exit if an open handlersocket connection remains --- plugin/handler_socket/handlersocket/database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/handler_socket/handlersocket/database.cpp b/plugin/handler_socket/handlersocket/database.cpp index 7c2c5e797d2..b05b6384565 100644 --- a/plugin/handler_socket/handlersocket/database.cpp +++ b/plugin/handler_socket/handlersocket/database.cpp @@ -344,7 +344,7 @@ void dbcontext::term_thread() { DBG_THR(fprintf(stderr, "HNDSOCK thread end %p\n", thd)); - unlock_tables_if(); + close_tables_if(); my_pthread_setspecific_ptr(THR_THD, 0); { pthread_mutex_lock(&LOCK_thread_count);