Skip to content

Commit

Permalink
*: code format
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <dawn_catcher@126.com>
  • Loading branch information
BornChanger committed May 22, 2023
1 parent b50e533 commit d7b63e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions br/pkg/aws/ebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ func (e *EC2Session) CreateVolumes(meta *config.EBSBasedBRMeta, volumeType strin
}
return ""
}

workerPool := utils.NewWorkerPool(e.concurrency, "create volume")
for i := range meta.TiKVComponent.Stores {
store := meta.TiKVComponent.Stores[i]
Expand All @@ -377,12 +378,14 @@ func (e *EC2Session) CreateVolumes(meta *config.EBSBasedBRMeta, volumeType strin
log.Debug("create volume from snapshot", zap.Any("volume", oldVol))
req := template

req.SetSnapshotId(oldVol.SnapshotID)
req.SetSnapshotId(oldVol.SnapshotID)

// set target AZ
if targetAZ == "" {
req.SetAvailabilityZone(oldVol.VolumeAZ)
} else {
req.SetAvailabilityZone(targetAZ)

}

// Copy interested tags of snapshots to the restored volume
tags := []*ec2.Tag{
Expand Down

0 comments on commit d7b63e7

Please sign in to comment.