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
ignore decode error for non-entry data
qieqieplus0764fccde7f8
diff --git a/weed/filer/rocksdb/rocksdb_ttl.go b/weed/filer/rocksdb/rocksdb_ttl.goindex 98918b5d7e..faed223103 100644--- a/weed/filer/rocksdb/rocksdb_ttl.go+++ b/weed/filer/rocksdb/rocksdb_ttl.go@@ -23,17 +23,16 @@ func NewTTLFilter() gorocksdb.CompactionFilter {func (t *TTLFilter) Filter(level int, key, val []byte) (remove bool, newVal []byte) {// decode could be slow, causing write stall// level >0 sst can run compaction in parallel- if t.skipLevel0 && level == 0 {- return false, val- }- entry := filer.Entry{}- if err := entry.DecodeAttributesAndChunks(val); err == nil {- if entry.TtlSec == 0 ||- entry.Crtime.Add(time.Duration(entry.TtlSec)*time.Second).After(time.Now()) {- return false, val+ if !t.skipLevel0 || level > 0 {+ entry := filer.Entry{}+ if err := entry.DecodeAttributesAndChunks(val); err == nil {+ if entry.TtlSec > 0 &&+ entry.Crtime.Add(time.Duration(entry.TtlSec)*time.Second).Before(time.Now()) {+ return true, nil+ }}}- return true, nil+ return false, val}func (t *TTLFilter) Name() string {