MXS-2169 Allow unsafe failover when 'enforce_simple_topology' is on
If gtid of master is unknown (as is typical when master is down when MaxScale starts) the domain id is guessed from the slaves instead. This is usually safe.
This commit is contained in:
@ -406,3 +406,13 @@ Gtid GtidList::get_gtid(uint32_t domain) const
|
||||
}
|
||||
return rval;
|
||||
}
|
||||
|
||||
GtidList::DomainList GtidList::domains() const
|
||||
{
|
||||
DomainList rval;
|
||||
for (auto& gtid : m_triplets)
|
||||
{
|
||||
rval.push_back(gtid.m_domain);
|
||||
}
|
||||
return rval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user