From 4280b84e6a1fadc168474f94547cfb5e4cf4aa8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 1 May 2019 17:16:02 +1000 Subject: [PATCH] Fix crash on startup when calling Get_Memory_Stats #2037 --- lib/MySQL_Thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp index 432a2638b..1227c2d0d 100644 --- a/lib/MySQL_Thread.cpp +++ b/lib/MySQL_Thread.cpp @@ -4415,10 +4415,12 @@ void MySQL_Threads_Handler::Get_Memory_Stats() { for (i=0;ipipefd[1]; if (write(fd,&c,1)==-1) { proxy_error("Error during write in signal_all_threads()\n"); @@ -4720,6 +4723,7 @@ void MySQL_Threads_Handler::signal_all_threads(unsigned char _c) { if (GloVars.global.idle_threads) for (i=0;ipipefd[1]; if (write(fd,&c,1)==-1) { proxy_error("Error during write in signal_all_threads()\n");