mirror of https://github.com/minio/minio.git
Remove `expires` field from list objects metadata (#20600)
This field was always 0 regardless of whether the object had an expiry so we are basically removing dead code.
This commit is contained in:
parent
b3ab7546ee
commit
c1fc7779ca
|
@ -593,9 +593,6 @@ func generateListVersionsResponse(ctx context.Context, bucket, prefix, marker, v
|
|||
for k, v := range cleanReservedKeys(object.UserDefined) {
|
||||
content.UserMetadata.Set(k, v)
|
||||
}
|
||||
if !object.Expires.IsZero() {
|
||||
content.UserMetadata.Set("expires", object.Expires.Format(http.TimeFormat))
|
||||
}
|
||||
content.Internal = &ObjectInternalInfo{
|
||||
K: object.DataBlocks,
|
||||
M: object.ParityBlocks,
|
||||
|
@ -730,9 +727,6 @@ func generateListObjectsV2Response(ctx context.Context, bucket, prefix, token, n
|
|||
for k, v := range cleanReservedKeys(object.UserDefined) {
|
||||
content.UserMetadata.Set(k, v)
|
||||
}
|
||||
if !object.Expires.IsZero() {
|
||||
content.UserMetadata.Set("expires", object.Expires.Format(http.TimeFormat))
|
||||
}
|
||||
content.Internal = &ObjectInternalInfo{
|
||||
K: object.DataBlocks,
|
||||
M: object.ParityBlocks,
|
||||
|
|
Loading…
Reference in New Issue