Skip to content

Commit f8192c9

Browse files
author
Arthur Gautier
committed
Fixup gtid formating
Signed-off-by: Arthur Gautier <baloo@gandi.net>
1 parent 1c79564 commit f8192c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymysqlreplication/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def gtid(self):
6565
Eg: 3E11FA47-71CA-11E1-9E33-C80AA9429562:23
6666
See: http://dev.mysql.com/doc/refman/5.6/en/replication-gtids-concepts.html"""
6767
nibbles = binascii.hexlify(self.sid).decode('ascii')
68-
gtid = '%s-%s-%s-%s:%d' % (
69-
nibbles[:8], nibbles[8:12], nibbles[12:16], nibbles[16:], self.gno
68+
gtid = '%s-%s-%s-%s-%s:%d' % (
69+
nibbles[:8], nibbles[8:12], nibbles[12:16], nibbles[16:20], nibbles[20:], self.gno
7070
)
7171
return gtid
7272

0 commit comments

Comments
 (0)