mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: avoid sending errors on missing objects on locked buckets (#10994)
make sure multi-object delete returned errors that are AWS S3 compatible
This commit is contained in:
@@ -759,9 +759,7 @@ func (s *erasureSets) DeleteObjects(ctx context.Context, bucket string, objects
|
||||
dobjects, errs := s.getHashedSet(objsGroup[0].object.ObjectName).DeleteObjects(ctx, bucket, toNames(objsGroup), opts)
|
||||
for i, obj := range objsGroup {
|
||||
delErrs[obj.origIndex] = errs[i]
|
||||
if delErrs[obj.origIndex] == nil {
|
||||
delObjects[obj.origIndex] = dobjects[i]
|
||||
}
|
||||
delObjects[obj.origIndex] = dobjects[i]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user