Skip to content

Commit 8801d83

Browse files
authored
Merge pull request #522 from lance6716/UUID-clone
2 parents 6abe502 + 5609503 commit 8801d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/mysql_gtid.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func (s *UUIDSet) Decode(data []byte) error {
294294
func (s *UUIDSet) Clone() *UUIDSet {
295295
clone := new(UUIDSet)
296296

297-
clone.SID, _ = uuid.FromString(s.SID.String())
297+
copy(clone.SID.Bytes(), s.SID.Bytes())
298298
clone.Intervals = s.Intervals.Normalize()
299299

300300
return clone

0 commit comments

Comments
 (0)