Skip to content

Commit

Permalink
br: use tikv volume count for ebs backup progress (pingcap#54556)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmdeng authored and hawkingrei committed Jul 16, 2024
1 parent ff99a62 commit 2a2a8da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions br/pkg/task/backup_ebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ func RunBackupEBS(c context.Context, g glue.Glue, cfg *BackupConfig) error {

// Step.2 starts call ebs snapshot api to back up volume data.
// NOTE: we should start snapshot in specify order.

progress := g.StartProgress(ctx, "backup", int64(storeCount)*100, !cfg.LogProgress)
go progressFileWriterRoutine(ctx, progress, int64(storeCount)*100, cfg.ProgressFile)
volumeCount := storeCount * backupInfo.GetTiKVVolumeCount()
progress := g.StartProgress(ctx, "backup", int64(volumeCount)*100, !cfg.LogProgress)
go progressFileWriterRoutine(ctx, progress, int64(volumeCount)*100, cfg.ProgressFile)

ec2Session, err := aws.NewEC2Session(cfg.CloudAPIConcurrency, cfg.S3.Region)
if err != nil {
Expand Down

0 comments on commit 2a2a8da

Please sign in to comment.