bug fix
This commit is contained in:
parent
7c0272cc62
commit
304b5c10a3
4
parse.go
4
parse.go
@ -372,6 +372,9 @@ func parseBinlogWithFilter(r io.Reader, parse *replication.BinlogParser, filter
|
||||
for {
|
||||
headBuf := make([]byte, replication.EventHeaderSize)
|
||||
if _, err = io.ReadFull(r, headBuf); err == io.EOF {
|
||||
if tx.Time.IsZero() {
|
||||
return nil
|
||||
}
|
||||
idx := 0
|
||||
for k, v := range tx.Txs {
|
||||
if v.SqlType != "query" && len(tx.sqlOrigin) > idx {
|
||||
@ -482,6 +485,7 @@ func parseBinlogWithFilter(r io.Reader, parse *replication.BinlogParser, filter
|
||||
}
|
||||
tx.Size = tx.EndPos - tx.StartPos
|
||||
callFn(tx)
|
||||
tx = Transaction{}
|
||||
}
|
||||
currentGtid = ev.Data
|
||||
if inGtid != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user