Skip to content

Commit

Permalink
Fix bug when excludeTableRegex is set while includeTableRegex is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojijun committed May 8, 2024
1 parent ea1c565 commit 7a1adfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions canal/canal.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ func (c *Canal) checkTableMatch(key string) bool {
break
}
}
} else {
matchFlag = true
}

// check exclude
if matchFlag && c.excludeTableRegex != nil {
for _, reg := range c.excludeTableRegex {
Expand Down

0 comments on commit 7a1adfb

Please sign in to comment.