Skip to content

Commit

Permalink
log out the skipFile after tasks are done
Browse files Browse the repository at this point in the history
Signed-off-by: Leavrth <jianjun.liao@outlook.com>
  • Loading branch information
Leavrth committed Jan 30, 2023
1 parent dd63b75 commit a5b0059
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions br/pkg/restore/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a5b0059

Please sign in to comment.