mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
replication:alloc UserDefined map before use (#11478)
This commit is contained in:
1 parent
152d7cd95b
commit
8e1bbd989a
1 file changed
+1
@@ -914,6 +914,7 @@ func proxyHeadToRepTarget(ctx context.Context, bucket, object string, opts Objec
|
||||
ReplicationStatus: replication.StatusType(objInfo.ReplicationStatus),
|
||||
UserTags: tags.String(),
|
||||
}
|
||||
oi.UserDefined = make(map[string]string, len(objInfo.Metadata))
|
||||
for k, v := range objInfo.Metadata {
|
||||
oi.UserDefined[k] = v[0]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user