Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
Signed-off-by: joccau <zak.zhao@pingcap.com>
  • Loading branch information
joccau committed Nov 22, 2022
1 parent d43b33f commit 6c84265
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions br/pkg/restore/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2016,16 +2016,13 @@ func (rc *Client) RestoreKVFiles(
onProgress(int64(len(files)))
updateStats(uint64(kvCount), size)
summary.CollectInt("File", len(files))
log.Info("import files done", zap.Int("batch-count", len(files)),
zap.Uint64("batch-size", size), zap.Duration("take", time.Since(fileStart)),
zap.Strings("filepath", func() []string {
filenames := make([]string, 0, len(files))
for _, f := range files {
filenames = append(filenames, f.Path+"; ")
}
return filenames
}()),
)

filenames := make([]string, 0, len(files))
for _, f := range files {
filenames = append(filenames, f.Path+", ")
}
log.Info("import files done", zap.Int("batch-count", len(files)), zap.Uint64("batch-size", size),
zap.Duration("take", time.Since(fileStart)), zap.Strings("files", filenames))
}()

return rc.fileImporter.ImportKVFiles(ectx, files, rule, rc.shiftStartTS, rc.startTS, rc.restoreTS, supportBatch)
Expand Down

0 comments on commit 6c84265

Please sign in to comment.