We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82338c7 commit 651feaeCopy full SHA for 651feae
canal/canal.go
@@ -451,6 +451,19 @@ func (c *Canal) prepareSyncer() error {
451
Logger: c.cfg.Logger,
452
Dialer: c.cfg.Dialer,
453
Localhost: c.cfg.Localhost,
454
+ RowsEventDecodeFunc: func(event *replication.RowsEvent, data []byte) error {
455
+ pos, err := event.DecodeHeader(data)
456
+ if err != nil {
457
+ return err
458
+ }
459
+
460
+ key := fmt.Sprintf("%s.%s", string(event.Table.Schema), string(event.Table.Table))
461
+ if !c.checkTableMatch(key) {
462
+ return nil
463
464
465
+ return event.DecodeData(pos, data)
466
+ },
467
}
468
469
if strings.Contains(c.cfg.Addr, "/") {
0 commit comments