Skip to content

Commit

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

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

* use sameStringArray
  • Loading branch information
lichunzhu authored and tisonkun committed Oct 20, 2021
1 parent c996f0f commit 96368cb
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 96368cb

Please sign in to comment.