diff --git a/br/pkg/restore/client.go b/br/pkg/restore/client.go index 7302a872f0cab..70d789a2d1dc4 100644 --- a/br/pkg/restore/client.go +++ b/br/pkg/restore/client.go @@ -2074,15 +2074,16 @@ func (rc *Client) RestoreKVFiles( return errors.Trace(err) }) + if err = eg.Wait(); err != nil { + summary.CollectFailureUnit("file", err) + log.Error("restore files failed", zap.Error(err)) + } + log.Info("total skip files due to table id not matched", zap.Int("count", skipFile)) if skipFile > 0 { log.Debug("table id in full backup storage", zap.Any("tables", rules)) } - if err = eg.Wait(); err != nil { - summary.CollectFailureUnit("file", err) - log.Error("restore files failed", zap.Error(err)) - } return errors.Trace(err) }