From 40d05e82789321dd0ed4ffad04ede4477fa80ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 19 Sep 2019 12:55:31 +0300 Subject: [PATCH] Report more details when the master is unavailable By dumping the connection state we'll know when the connection was opened and closed and the reason why it was closed. --- server/modules/routing/readwritesplit/rwsplit_route_stmt.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc index 7919d5a0a..50e4907ae 100644 --- a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc +++ b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc @@ -738,8 +738,8 @@ SRWBackend RWSplitSession::get_master_backend() else { MXS_ERROR("Cannot choose server '%s' as the master because it is not " - "in use and a new connection to it cannot be created.", - master->name()); + "in use and a new connection to it cannot be created. Connection status: %s", + master->name(), master->get_verbose_status().c_str()); } }