From 43068d20b43a34d5f3b4b4db0fcce701b3cd7cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 10 Dec 2020 11:53:06 +0200 Subject: [PATCH] MXS-3337: Fix galeramon query The query now properly queries over both the status and the variables. --- server/modules/monitor/galeramon/galeramon.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/modules/monitor/galeramon/galeramon.cc b/server/modules/monitor/galeramon/galeramon.cc index 7ef0bd195..7430911ff 100644 --- a/server/modules/monitor/galeramon/galeramon.cc +++ b/server/modules/monitor/galeramon/galeramon.cc @@ -137,7 +137,11 @@ void GaleraMonitor::update_server_status(MXS_MONITORED_SERVER* monitored_server) /* Check if the the Galera FSM shows this node is joined to the cluster */ const char* cluster_member = - "SHOW STATUS WHERE Variable_name IN" + " SELECT * FROM (" + " SELECT * FROM information_schema.SESSION_STATUS" + " UNION" + " SELECT * FROM information_schema.SESSION_VARIABLES) AS t" + " WHERE Variable_name IN" " ('wsrep_cluster_state_uuid'," " 'wsrep_cluster_size'," " 'wsrep_local_index',"