|
|
@ -144,10 +144,12 @@ func putReplicationOpts(dest replication.Destination, objInfo ObjectInfo) (putOp |
|
|
|
ContentType: objInfo.ContentType, |
|
|
|
ContentType: objInfo.ContentType, |
|
|
|
ContentEncoding: objInfo.ContentEncoding, |
|
|
|
ContentEncoding: objInfo.ContentEncoding, |
|
|
|
StorageClass: sc, |
|
|
|
StorageClass: sc, |
|
|
|
ReplicationVersionID: objInfo.VersionID, |
|
|
|
Internal: miniogo.AdvancedPutOptions{ |
|
|
|
|
|
|
|
SourceVersionID: objInfo.VersionID, |
|
|
|
ReplicationStatus: miniogo.ReplicationStatusReplica, |
|
|
|
ReplicationStatus: miniogo.ReplicationStatusReplica, |
|
|
|
ReplicationMTime: objInfo.ModTime, |
|
|
|
SourceMTime: objInfo.ModTime, |
|
|
|
ReplicationETag: objInfo.ETag, |
|
|
|
SourceETag: objInfo.ETag, |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
if mode, ok := objInfo.UserDefined[xhttp.AmzObjectLockMode]; ok { |
|
|
|
if mode, ok := objInfo.UserDefined[xhttp.AmzObjectLockMode]; ok { |
|
|
|
rmode := miniogo.RetentionMode(mode) |
|
|
|
rmode := miniogo.RetentionMode(mode) |
|
|
|