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.
This commit is contained in:
Markus Mäkelä 2019-09-19 12:55:31 +03:00
parent 87b1dd2703
commit 40d05e8278
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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());
}
}