mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
S3-layer: Multiple-delete should return success for non-existent objects. (#2633)
Fixes #2630
This commit is contained in:
committed by
Harshavardhana
parent
afe874f15a
commit
a4afb312d4
@@ -267,6 +267,12 @@ func (api objectAPIHandlers) DeleteMultipleObjectsHandler(w http.ResponseWriter,
|
||||
deletedObjects = append(deletedObjects, object)
|
||||
continue
|
||||
}
|
||||
if _, ok := err.(ObjectNotFound); ok {
|
||||
// If the object is not found it should be
|
||||
// accounted as deleted as per S3 spec.
|
||||
deletedObjects = append(deletedObjects, object)
|
||||
continue
|
||||
}
|
||||
errorIf(err, "Unable to delete object. %s", object.ObjectName)
|
||||
// Error during delete should be collected separately.
|
||||
deleteErrors = append(deleteErrors, DeleteError{
|
||||
|
||||
Reference in New Issue
Block a user