|
@@ -86,7 +86,8 @@ public class MysqlGTIDSet implements GTIDSet {
|
|
|
if (gtidData == null || gtidData.length() < 1) {
|
|
|
m = new HashMap<String, UUIDSet>();
|
|
|
} else {
|
|
|
- String[] uuidStrs = gtidData.split(",");
|
|
|
+ // 存在多个GTID时会有回车符
|
|
|
+ String[] uuidStrs = gtidData.replaceAll("\n", "").split(",");
|
|
|
m = new HashMap<String, UUIDSet>(uuidStrs.length);
|
|
|
for (int i = 0; i < uuidStrs.length; i++) {
|
|
|
UUIDSet uuidSet = UUIDSet.parse(uuidStrs[i]);
|