ISSUES-4006 fix empty gtid format when sets parse

This commit is contained in:
BohuTANG 2020-08-18 23:01:21 +08:00
parent a78604db2b
commit 30b8159bb0

View File

@ -22,6 +22,11 @@ void GTIDSet::tryMerge(size_t i)
void GTIDSets::parse(const String gtid_format)
{
if (gtid_format.empty())
{
return;
}
std::vector<String> gtid_sets;
boost::split(gtid_sets, gtid_format, [](char c) { return c == ','; });