mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-05-25 11:10:20 +00:00
strut copying
This commit is contained in:
@@ -140,19 +140,9 @@ func (fs *FilerServer) doPutAutoChunk(ctx context.Context, w http.ResponseWriter
|
||||
soMaybeWithOutTTL := so
|
||||
if so.TtlSeconds > 0 {
|
||||
if s3ExpiresValue := r.Header.Get(s3_constants.SeaweedFSExpiresS3); s3ExpiresValue == "true" {
|
||||
soMaybeWithOutTTL = &operation.StorageOption{
|
||||
so.Replication,
|
||||
so.DiskType,
|
||||
so.Collection,
|
||||
so.DataCenter,
|
||||
so.Rack,
|
||||
so.DataNode,
|
||||
0,
|
||||
so.VolumeGrowthCount,
|
||||
so.MaxFileNameLength,
|
||||
so.Fsync,
|
||||
so.SaveInside,
|
||||
}
|
||||
clone := *so
|
||||
clone.TtlSeconds = 0
|
||||
soMaybeWithOutTTL = &clone
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user