Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore improvement: batch retry #4071

Merged
merged 8 commits into from
Oct 22, 2024
8 changes: 7 additions & 1 deletion pkg/service/backup/backupspec/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,19 @@ func NewLocation(location string) (l Location, err error) {
}

func (l Location) String() string {
p := l.Provider.String() + ":" + l.Path
p := l.StringWithoutDC()
if l.DC != "" {
p = l.DC + ":" + p
}
return p
}

// StringWithoutDC returns Location string representation
// that lacks DC information.
func (l Location) StringWithoutDC() string {
return l.Provider.String() + ":" + l.Path
}

// Datacenter returns location's datacenter.
func (l Location) Datacenter() string {
return l.DC
Expand Down
Loading
Loading