Skip to content

Commit

Permalink
table-filter: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed May 15, 2020
1 parent dd08645 commit 1054263
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ const (
// Table represents a table.
type Table = tfilter.Table

// Clone clones a new filter.Table
func (t *Table) Clone() *Table {
return &Table{
Schema: t.Schema,
Name: t.Name,
}
}

type cache struct {
sync.RWMutex
items map[string]ActionType // `schema`.`table` => do/ignore
Expand Down
8 changes: 8 additions & 0 deletions pkg/table-filter/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ func (t *Table) String() string {
return fmt.Sprintf("`%s`", t.Schema)
}

// Clone clones a new filter.Table
func (t *Table) Clone() *Table {
return &Table{
Schema: t.Schema,
Name: t.Name,
}
}

// MySQLReplicationRules is a set of rules based on MySQL's replication filter.
type MySQLReplicationRules struct {
// DoTables is a whitelist of tables.
Expand Down

0 comments on commit 1054263

Please sign in to comment.