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
[remote.cache, remote.uncache] fix min/max age
chrislue069009f09b6
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.goindex 34269ce4ec..f5ec8934c2 100644--- a/weed/shell/command_remote_uncache.go+++ b/weed/shell/command_remote_uncache.go@@ -7,6 +7,7 @@ import ("io""path/filepath""strings"+ "time""github.com/seaweedfs/seaweedfs/weed/filer""github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"@@ -164,12 +165,12 @@ func (ff *FileFilter) matches(entry *filer_pb.Entry) bool {}}if *ff.minAge != -1 {- if entry.Attributes.Crtime < *ff.minAge {+ if entry.Attributes.Crtime + *ff.minAge < time.Now().Unix() {return false}}if *ff.maxAge != -1 {- if entry.Attributes.Crtime > *ff.maxAge {+ if entry.Attributes.Crtime + *ff.maxAge > time.Now().Unix() {return false}}