aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-11-05 13:11:16 -0800
committerchrislu <chris.lu@gmail.com>2025-11-05 13:11:16 -0800
commit45e0a661da7e35f7ff0ca0035b87db27edde8726 (patch)
tree6246b3e434fb13684d7ae80c3c2ede1c372378cc
parent636540aba2ba4256a8dc99f493490dd641510d67 (diff)
downloadseaweedfs-45e0a661da7e35f7ff0ca0035b87db27edde8726.tar.xz
seaweedfs-45e0a661da7e35f7ff0ca0035b87db27edde8726.zip
strut copying
-rw-r--r--weed/server/filer_server_handlers_write_autochunk.go16
1 files changed, 3 insertions, 13 deletions
diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go
index 4525af61e..fba693f43 100644
--- a/weed/server/filer_server_handlers_write_autochunk.go
+++ b/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
}
}