Skip to content

执行 -w stats 的时候报错 #3

@zeusYi

Description

@zeusYi

[root@masterdb-erp binlog_flashback]# ./binlog_rollback -m file -w stats -M mysql -i 20 -b 100 -l 10 -sbin="mysql-bin.000067" -spos=11181440 -o /root/binlog_flashback/binlogs_dir /server/mysql_data/mysql38375/data/mysql-bin.000067
time="2019-11-12_20:00:36" level=info errcode=0 errmsg="start to parse binlog from local files"
time="2019-11-12_20:00:36" level=info errcode=0
start to parse /server/mysql_data/mysql38375/data/mysql-bin.000067 11181440

time="2019-11-12_20:00:36" level=info errcode=0 errmsg="start thread to analyze statistics from binlog"
panic: assignment to entry in nil map

goroutine 18 [running]:
main.ProcessBinEventStats(0xc0000840d0, 0xc0000840d8, 0xc0000840e0, 0x10cc080, 0xc000086ae0, 0xc0001e61d0)
E:/danny/src/go_person/src/binlog_rollback/stats_process.go:247 +0xa70
created by main.main
E:/danny/src/go_person/src/binlog_rollback/main.go:32 +0x487

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions