diff --git a/br/pkg/task/stream.go b/br/pkg/task/stream.go index d59a005cd9010..45f1849213cdf 100644 --- a/br/pkg/task/stream.go +++ b/br/pkg/task/stream.go @@ -1040,9 +1040,15 @@ func restoreStream( if err != nil { summary.Log("restore log failed summary", zap.Error(err)) } else { - summary.Log("restore log success summary", zap.Duration("total-take", time.Since(startTime)), + totalDureTime := time.Since(startTime) + summary.Log("restore log success summary", zap.Duration("total-take", totalDureTime), zap.Uint64("restore-from", cfg.StartTS), zap.Uint64("restore-to", cfg.RestoreTS), - zap.Uint64("total-kv-count", totalKVCount), zap.Uint64("total-size", totalSize)) + zap.String("restore-from", stream.FormatDate(oracle.GetTimeFromTS(cfg.StartTS))), + zap.String("restore-to", stream.FormatDate(oracle.GetTimeFromTS(cfg.RestoreTS))), + zap.Uint64("total-kv-count", totalKVCount), + zap.String("total-size", units.HumanSize(float64(totalSize))), + zap.String("average-speed", units.HumanSize(float64(totalSize)/float64(totalDureTime.Seconds()))+"/s"), + ) } }() diff --git a/build/nogo_config.json b/build/nogo_config.json index 21ea44e21175f..71bbf50d415f7 100644 --- a/build/nogo_config.json +++ b/build/nogo_config.json @@ -301,6 +301,9 @@ ".*\\.pb\\.go$": "generated code", "parser/parser.go": "generated code", "/cgo/": "no need to vet third party code for cgo", + "br/pkg/lightning/common/conn.go": "ignore: to fix it", + "br/pkg/lightning/common/storage_unix.go": "ignore: to fix it", + "br/pkg/task/common.go": "ignore: to fix it", ".*_generated\\.go$": "ignore generated code" } },