mysqldba rbr2sbr 执行报错
zeusYi opened this issue · 0 comments
[root@mysql data]# mysqlbinlog -v --base64-output=DECODE-ROWS mysql-bin.000008 | mysqldba rbr2sbr
rbr2sbr called
/!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1/;
/!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0/;
DELIMITER /!/;
...........(忽略)
#180914 16:21:07 server id 3 end_log_pos 3750 CRC32 0x2b72e221 Xid = 218
COMMIT/!/;
SET @@SESSION.GTID_NEXT= 'AUTOMATIC' /* added by mysqlbinlog / /!*/;
DELIMITER ;
End of log file
/!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE/;
/!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0/;
panic: EOF
goroutine 1 [running]:
github.com/kevinbin/mysqldba/cmd.ifErrWithPanic(0x8bee00, 0xc42003c040)
/root/go/src/github.com/kevinbin/mysqldba/cmd/root.go:120 +0x4a
github.com/kevinbin/mysqldba/cmd.rbrToSbr()
/root/go/src/github.com/kevinbin/mysqldba/cmd/rbr2sbr.go:67 +0x268
github.com/kevinbin/mysqldba/cmd.glob..func3(0x8dde80, 0x900570, 0x0, 0x0)
/root/go/src/github.com/kevinbin/mysqldba/cmd/rbr2sbr.go:41 +0x6c
github.com/spf13/cobra.(*Command).execute(0x8dde80, 0x900570, 0x0, 0x0, 0x8dde80, 0x900570)
/root/go/src/github.com/spf13/cobra/command.go:766 +0x2c1
github.com/spf13/cobra.(*Command).ExecuteC(0x8de340, 0x1, 0x747ba4, 0x1)
/root/go/src/github.com/spf13/cobra/command.go:852 +0x334
github.com/spf13/cobra.(*Command).Execute(0x8de340, 0x0, 0x6a6eb2)
/root/go/src/github.com/spf13/cobra/command.go:800 +0x2b
github.com/kevinbin/mysqldba/cmd.Execute()
/root/go/src/github.com/kevinbin/mysqldba/cmd/root.go:68 +0x31
main.main()
/root/go/src/github.com/kevinbin/mysqldba/main.go:28 +0x20