From 847b6975ec80d178c2ddb68e61d1355a2bf3be04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Fern=C3=A1ndez=20Garc=C3=ADa-Minguill?= =?UTF-8?q?=C3=A1n?= Date: Tue, 30 Jun 2020 16:09:49 +0200 Subject: [PATCH] Initialize interr variable in galera monitor If isn't possible create a MySQL connection in the galera monitor the code jump to __exit_monitor_galera_thread label, bypassing the interr initialization. --- lib/MySQL_Monitor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 4f7920052..b003f2427 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -1679,6 +1679,7 @@ void * monitor_galera_thread(void *arg) { #endif // DEBUG mmsd->t1=start_time; + mmsd->interr=0; // reset the value bool crc=false; if (mmsd->mysql==NULL) { // we don't have a connection, let's create it