Browse Source

strut copying

pull/7426/head
chrislu 4 weeks ago
parent
commit
45e0a661da
  1. 16
      weed/server/filer_server_handlers_write_autochunk.go

16
weed/server/filer_server_handlers_write_autochunk.go

@ -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
}
}

Loading…
Cancel
Save