strut copying

This commit is contained in:
chrislu
2025-11-05 13:11:16 -08:00
parent 636540aba2
commit 45e0a661da

View File

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