From dbbed6f7f0f72591f464de5ee5825a7f703e3830 Mon Sep 17 00:00:00 2001 From: Poorna Krishnamoorthy Date: Tue, 6 Oct 2020 08:37:09 -0700 Subject: [PATCH] update minio-go dependency (#10634) --- cmd/bucket-replication.go | 20 +++++++++++--------- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/cmd/bucket-replication.go b/cmd/bucket-replication.go index dcd3262b9..8a75327bc 100644 --- a/cmd/bucket-replication.go +++ b/cmd/bucket-replication.go @@ -139,15 +139,17 @@ func putReplicationOpts(dest replication.Destination, objInfo ObjectInfo) (putOp sc = objInfo.StorageClass } putOpts = miniogo.PutObjectOptions{ - UserMetadata: meta, - UserTags: tag.ToMap(), - ContentType: objInfo.ContentType, - ContentEncoding: objInfo.ContentEncoding, - StorageClass: sc, - ReplicationVersionID: objInfo.VersionID, - ReplicationStatus: miniogo.ReplicationStatusReplica, - ReplicationMTime: objInfo.ModTime, - ReplicationETag: objInfo.ETag, + UserMetadata: meta, + UserTags: tag.ToMap(), + ContentType: objInfo.ContentType, + ContentEncoding: objInfo.ContentEncoding, + StorageClass: sc, + Internal: miniogo.AdvancedPutOptions{ + SourceVersionID: objInfo.VersionID, + ReplicationStatus: miniogo.ReplicationStatusReplica, + SourceMTime: objInfo.ModTime, + SourceETag: objInfo.ETag, + }, } if mode, ok := objInfo.UserDefined[xhttp.AmzObjectLockMode]; ok { rmode := miniogo.RetentionMode(mode) diff --git a/go.mod b/go.mod index 9e06611ed..78bc626cd 100644 --- a/go.mod +++ b/go.mod @@ -48,7 +48,7 @@ require ( github.com/miekg/dns v1.1.8 github.com/minio/cli v1.22.0 github.com/minio/highwayhash v1.0.0 - github.com/minio/minio-go/v7 v7.0.5-0.20200811211821-14ed05478889 + github.com/minio/minio-go/v7 v7.0.6-0.20200929220449-755b5633803a github.com/minio/selfupdate v0.3.1 github.com/minio/sha256-simd v0.1.1 github.com/minio/simdjson-go v0.1.5 diff --git a/go.sum b/go.sum index 265f7ddaa..15f60bef3 100644 --- a/go.sum +++ b/go.sum @@ -308,8 +308,8 @@ github.com/minio/highwayhash v1.0.0 h1:iMSDhgUILCr0TNm8LWlSjF8N0ZIj2qbO8WHp6Q/J2 github.com/minio/highwayhash v1.0.0/go.mod h1:xQboMTeM9nY9v/LlAOxFctujiv5+Aq2hR5dxBpaMbdc= github.com/minio/md5-simd v1.1.0 h1:QPfiOqlZH+Cj9teu0t9b1nTBfPbyTl16Of5MeuShdK4= github.com/minio/md5-simd v1.1.0/go.mod h1:XpBqgZULrMYD3R+M28PcmP0CkI7PEMzB3U77ZrKZ0Gw= -github.com/minio/minio-go/v7 v7.0.5-0.20200811211821-14ed05478889 h1:uO6mz/7ywYA4U/Xl/FzJ/FePE4HIJT76/UFdXFoOqUY= -github.com/minio/minio-go/v7 v7.0.5-0.20200811211821-14ed05478889/go.mod h1:CSt2ETZNs+bIIhWTse0mcZKZWMGrFU7Er7RR0TmkDYk= +github.com/minio/minio-go/v7 v7.0.6-0.20200929220449-755b5633803a h1:duFwQxzoPzBt4LbaftSVVTDwRrpuMIKI6XoJ5mKSaOs= +github.com/minio/minio-go/v7 v7.0.6-0.20200929220449-755b5633803a/go.mod h1:CSt2ETZNs+bIIhWTse0mcZKZWMGrFU7Er7RR0TmkDYk= github.com/minio/selfupdate v0.3.1 h1:BWEFSNnrZVMUWXbXIgLDNDjbejkmpAmZvy/nCz1HlEs= github.com/minio/selfupdate v0.3.1/go.mod h1:b8ThJzzH7u2MkF6PcIra7KaXO9Khf6alWPvMSyTDCFM= github.com/minio/sha256-simd v0.1.1 h1:5QHSlgo3nt5yKOJrC7W8w7X+NFl8cMPZm96iu8kKUJU=