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: detect ttl based on fs configure setting
chrislu8402af0882ea
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.goindex 67d4aaaaf9..d56d36c382 100644--- a/weed/server/filer_grpc_server.go+++ b/weed/server/filer_grpc_server.go@@ -144,8 +144,15 @@ func (fs *FilerServer) CreateEntry(ctx context.Context, req *filer_pb.CreateEntrreturn &filer_pb.CreateEntryResponse{}, fmt.Errorf("CreateEntry cleanupChunks %s %s: %v", req.Directory, req.Entry.Name, err2)}+ so, err := fs.detectStorageOption(string(util.NewFullPath(req.Directory, req.Entry.Name)), "", "", 0, "", "", "", "")+ if err != nil {+ return nil, err+ }newEntry := filer.FromPbEntry(req.Directory, req.Entry)newEntry.Chunks = chunks+ newEntry.TtlSec = so.TtlSeconds+ newEntry.Collection = so.Collection+ newEntry.DiskType = so.DiskTypecreateErr := fs.filer.CreateEntry(ctx, newEntry, req.OExcl, req.IsFromOtherCluster, req.Signatures, req.SkipCheckParentDirectory)