mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
change updateVersion to only update keys, no deletes (#12032)
there are situations where metadata can have keys with empty values, preserve existing behavior
This commit is contained in:
@@ -138,7 +138,10 @@ func (fi FileInfo) ToObjectInfo(bucket, object string) ObjectInfo {
|
||||
objInfo.ETag = extractETag(fi.Metadata)
|
||||
|
||||
// Add user tags to the object info
|
||||
objInfo.UserTags = fi.Metadata[xhttp.AmzObjectTagging]
|
||||
tags := fi.Metadata[xhttp.AmzObjectTagging]
|
||||
if len(tags) != 0 {
|
||||
objInfo.UserTags = tags
|
||||
}
|
||||
|
||||
// Add replication status to the object info
|
||||
objInfo.ReplicationStatus = replication.StatusType(fi.Metadata[xhttp.AmzBucketReplicationStatus])
|
||||
|
||||
Reference in New Issue
Block a user