MXS-1744 Implement a Gtid-class which can store multi-domain gtid:s

The operations between Gtid:s are now more complicated so the class implements
them instead of the monitor. The Old Gtid-container has been renamed
GtidTriplet, and only stores the values for one triplet.
This commit is contained in:
Esa Korhonen
2018-03-29 10:49:49 +03:00
parent 8596fea62a
commit aaa8c92886
6 changed files with 314 additions and 31 deletions

View File

@ -203,11 +203,12 @@ bool MariaDBServer::do_show_slave_status(int64_t gtid_domain)
{
string gtid_io_pos = result->get_string(i_gtid_io_pos);
slave_status.gtid_io_pos = !gtid_io_pos.empty() ?
Gtid(gtid_io_pos.c_str(), gtid_domain) : Gtid();
GtidTriplet(gtid_io_pos.c_str(), gtid_domain) :
GtidTriplet();
}
else
{
slave_status.gtid_io_pos = Gtid();
slave_status.gtid_io_pos = GtidTriplet();
}
}
}