mirror of
https://github.com/versity/versitygw.git
synced 2026-08-18 05:06:27 +00:00
fix: removes object metadata loading from posix ListParts
In the POSIX `ListParts` implementation, there was a code snippet that loaded the object metadata, even though it wasn’t needed and never used in the response. This redundant code has now been removed.
This commit is contained in:
@@ -2462,10 +2462,6 @@ func (p *Posix) ListParts(ctx context.Context, input *s3.ListPartsInput) (s3resp
|
||||
nextpart = parts[len(parts)-1].PartNumber
|
||||
}
|
||||
|
||||
userMetaData := make(map[string]string)
|
||||
upiddir := filepath.Join(objdir, uploadID)
|
||||
p.loadObjectMetaData(nil, bucket, upiddir, nil, userMetaData)
|
||||
|
||||
return s3response.ListPartsResult{
|
||||
Bucket: bucket,
|
||||
IsTruncated: oldLen != newLen,
|
||||
|
||||
Reference in New Issue
Block a user