From 01acdcdd2e3c73541136a9708debdf612ab2f34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 11 Oct 2016 14:27:07 +0000 Subject: [PATCH] Bug in maintenance thread --- lib/MySQL_Thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp index c9fc670b1..6d92c6c8a 100644 --- a/lib/MySQL_Thread.cpp +++ b/lib/MySQL_Thread.cpp @@ -1887,7 +1887,8 @@ __run_skip_1: unsigned int j; int conns=0; for (j=0;jsess->mybes->len;j++) { - MySQL_Data_Stream *__myds=(MySQL_Data_Stream *)myds->sess->mybes->index(j); + MySQL_Backend *tmp_mybe=(MySQL_Backend *)myds->sess->mybes->index(j); + MySQL_Data_Stream *__myds=tmp_mybe->server_myds; if (__myds->myconn) { conns++; }