Skip to content

Commit

Permalink
br: Add comment to filterRestoreFiles function (pingcap#33353)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangLe1321 authored Mar 24, 2022
1 parent 0e043c6 commit 815a537
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion br/pkg/task/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (cfg *RestoreConfig) ParseFromFlags(flags *pflag.FlagSet) error {
}

// adjustRestoreConfig is use for BR(binary) and BR in TiDB.
// When new config was add and not included in parser.
// When new config was added and not included in parser.
// we should set proper value in this function.
// so that both binary and TiDB will use same default value.
func (cfg *RestoreConfig) adjustRestoreConfig() {
Expand Down Expand Up @@ -532,6 +532,8 @@ func dropToBlackhole(
return outCh
}

// filterRestoreFiles filters tables that can't be processed after applying cfg.TableFilter.MatchTable.
// if the db has no table that can be processed, the db will be filtered too.
func filterRestoreFiles(
client *restore.Client,
cfg *RestoreConfig,
Expand Down

0 comments on commit 815a537

Please sign in to comment.