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:
Esa Korhonen
2019-05-14 13:48:31 +03:00
parent 0f714e9ad4
commit 650230455a
6 changed files with 153 additions and 44 deletions

View File

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