mirror of
https://github.com/rclone/rclone.git
synced 2025-02-05 13:11:29 +01:00
swift: speed up deletes by not retrying segment container deletes
Before this fix rclone would continually try to delete non empty segment containers which made deleting lots of files very slow. This fix makes rclone just try the delete once and then carry on which was the original intent of the code before the retry logic got put in.
This commit is contained in:
parent
a8cee91929
commit
21f5b1076f
@ -1124,6 +1124,9 @@ func (o *Object) removeSegments(except string) error {
|
||||
// remove the segments container if empty, ignore errors
|
||||
err = o.fs.pacer.Call(func() (bool, error) {
|
||||
err = o.fs.c.ContainerDelete(segmentsContainer)
|
||||
if err == swift.ContainerNotFound || err == swift.ContainerNotEmpty {
|
||||
return false, err
|
||||
}
|
||||
return shouldRetry(err)
|
||||
})
|
||||
if err == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user