forked from TrueCloudLab/distribution
Merge pull request #1172 from aaronlehmann/swift-empty-delete-request
Fix empty delete requests with Swift fs driver
This commit is contained in:
commit
d7b999e903
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ func (d *driver) Delete(ctx context.Context, path string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if d.BulkDeleteSupport {
|
||||
if len(objects) > 0 && d.BulkDeleteSupport {
|
||||
filenames := make([]string, len(objects))
|
||||
for i, obj := range objects {
|
||||
filenames[i] = obj.Name
|
||||
|
|
Loading…
Reference in a new issue