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
use append time instead of filer's own modification time
Chris Lud986c7196d96
diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.goindex c30abf237b..f28ee50e66 100644--- a/weed/storage/volume_read_write.go+++ b/weed/storage/volume_read_write.go@@ -322,7 +322,7 @@ func (v *Volume) readNeedle(n *needle.Needle, readOption *ReadOption) (int, erroif !n.HasLastModifiedDate() {return bytesRead, nil}- if uint64(time.Now().Unix()) < n.LastModified+uint64(ttlMinutes*60) {+ if time.Now().Before(time.Unix(0, int64(n.AppendAtNs)).Add(time.Duration(ttlMinutes) * time.Minute)) {return bytesRead, nil}return -1, ErrorNotFound