Skip to content

Commit

Permalink
hotfix the bug that -T can't work which is introduced from pingcap#194 (
Browse files Browse the repository at this point in the history
pingcap#195)

* hotfix the bug that -T can't work which is introduced from pingcap#194

* use sameStringArray
  • Loading branch information
lichunzhu authored Nov 9, 2020
1 parent 89a6621 commit 48af353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dumpling/v4/export/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func ParseTableFilter(tablesList, filters []string) (filter.Filter, error) {
}

// only parse -T when -f is default value. otherwise bail out.
if len(filters) != 1 || filters[0] != "*.*" {
if !sameStringArray(filters, []string{"*.*", DefaultTableFilter}) {
return nil, errors.New("cannot pass --tables-list and --filter together")
}

Expand Down

0 comments on commit 48af353

Please sign in to comment.