File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ def decode(cls, payload):
227
227
intervals = []
228
228
for i in range (0 , n_intervals ):
229
229
start , end = struct .unpack ('<QQ' , payload .read (16 ))
230
- intervals .append ((start , end ))
230
+ intervals .append ((start , end - 1 ))
231
231
232
232
return cls ('%s:%s' % (sid .decode ('ascii' ), ':' .join ([
233
233
'%d-%d' % x
Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ def test_gtidset_representation_newline(self):
846
846
myset = GtidSet (mysql_repr )
847
847
self .assertEqual (str (myset ), set_repr )
848
848
849
- def test_gtidset_representation (self ):
849
+ def test_gtidset_representation_payload (self ):
850
850
set_repr = '57b70f4e-20d3-11e5-a393-4a63946f7eac:1-56,' \
851
851
'4350f323-7565-4e59-8763-4b1b83a0ce0e:1-20'
852
852
You can’t perform that action at this time.
0 commit comments