SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
filer: preserve existing TTL during CreateEntry/UpdateEntry gRPC calls
Chris Lub91427c30fa8
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.goindex cd555f2c2c..4510a0397b 100644--- a/weed/server/filer_grpc_server.go+++ b/weed/server/filer_grpc_server.go@@ -155,7 +155,9 @@ func (fs *FilerServer) CreateEntry(ctx context.Context, req *filer_pb.CreateEntrnewEntry.Chunks = chunks// Don't apply TTL to remote entries - they're managed by remote storageif newEntry.Remote == nil {- newEntry.TtlSec = so.TtlSeconds+ if newEntry.TtlSec == 0 {+ newEntry.TtlSec = so.TtlSeconds+ }} else {newEntry.TtlSec = 0}