Skip to content

Commit

Permalink
ignore binlog from schema mysql (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Git authored and ming535 committed Sep 20, 2019
1 parent e910021 commit 4e09412
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/inputs/mysqlstream/binlog_tailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ func (tailer *BinlogTailer) Start() error {

schemaName, tableName := string(ev.Table.Schema), string(ev.Table.Table)

if schemaName == "mysql" {
log.Debugf("ignore change from mysql, table=%s", tableName)
continue
}

// dead signal is received from special internal table.
// it is only used for test purpose right now.
isDeadSignal := mysql_test.IsDeadSignal(schemaName, tableName)
Expand Down

0 comments on commit 4e09412

Please sign in to comment.