Skip to content

Commit

Permalink
Use decode to handle any uncompression if needed and eliminate flavor
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord committed Aug 14, 2024
1 parent c7ee55a commit 13cba66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion go/vt/vttablet/tabletmanager/vreplication/vplayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,11 @@ func getNextPosition(items [][]*binlogdatapb.VEvent, i, j int) string {
for j < len(items[i]) {
switch items[i][j].Type {
case binlogdatapb.VEventType_GTID:
return items[i][j].Gtid
pos, err := binlogplayer.DecodePosition(items[i][j].Gtid)
if err != nil {
return ""
}
return pos.String()
}
j++
}
Expand Down

0 comments on commit 13cba66

Please sign in to comment.