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
fix time comparison
qieqieplusb2e50f602f23
diff --git a/weed/filer/rocksdb/rocksdb_ttl.go b/weed/filer/rocksdb/rocksdb_ttl.goindex 1fc239c0c7..98918b5d7e 100644--- a/weed/filer/rocksdb/rocksdb_ttl.go+++ b/weed/filer/rocksdb/rocksdb_ttl.go@@ -29,7 +29,7 @@ func (t *TTLFilter) Filter(level int, key, val []byte) (remove bool, newVal []byentry := 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()) {+ entry.Crtime.Add(time.Duration(entry.TtlSec)*time.Second).After(time.Now()) {return false, val}}