MXS-2273 Honour BEING_DRAINED in Backend::can_connect()

This will cause the drain bit to be honoured in RWS and Cat routers.
This commit is contained in:
Johan Wikman 2019-01-25 17:29:18 +02:00
parent c2d3bdf7ef
commit 0e92affcc3

View File

@ -148,7 +148,7 @@ public:
*/
inline bool can_connect() const
{
return !has_failed() && m_backend->server->is_usable();
return !has_failed() && m_backend->server->is_connectable();
}
/**