Skip to content

Commit

Permalink
*: code format
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <[email protected]>
  • Loading branch information
BornChanger authored and ti-chi-bot committed May 22, 2023
1 parent 9d4670d commit 522bacf
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 522bacf

Please sign in to comment.