From 815a5375fdf151e7e85ffeead0ba4aaf6bdbe388 Mon Sep 17 00:00:00 2001 From: WangLe1321 Date: Thu, 24 Mar 2022 17:12:33 +0800 Subject: [PATCH] br: Add comment to filterRestoreFiles function (#33353) close pingcap/tidb#33352 --- br/pkg/task/restore.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/br/pkg/task/restore.go b/br/pkg/task/restore.go index 186d7978d9..1895a901d7 100644 --- a/br/pkg/task/restore.go +++ b/br/pkg/task/restore.go @@ -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() { @@ -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,