Only redirect usable slaves
Prevents pointless retrying/waiting when redirecting slaves.
This commit is contained in:
parent
3b1b63d939
commit
374ae2fc9b
@ -1804,7 +1804,7 @@ ServerArray MariaDBMonitor::get_redirectables(const MariaDBServer* promotion_tar
|
||||
ServerArray redirectable_slaves;
|
||||
for (MariaDBServer* slave : demotion_target->m_node.children)
|
||||
{
|
||||
if (slave != promotion_target)
|
||||
if (slave->is_usable() && slave != promotion_target)
|
||||
{
|
||||
auto sstatus = slave->slave_connection_status(demotion_target);
|
||||
if (sstatus && !sstatus->gtid_io_pos.empty())
|
||||
|
Loading…
x
Reference in New Issue
Block a user