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
adjust modification detection logic
Chris Lu889b143fa73b
diff --git a/weed/server/filer_grpc_server_remote.go b/weed/server/filer_grpc_server_remote.goindex 54e9445ce2..97927e9c0d 100644--- a/weed/server/filer_grpc_server_remote.go+++ b/weed/server/filer_grpc_server_remote.go@@ -153,7 +153,7 @@ func (fs *FilerServer) DownloadToLocal(ctx context.Context, req *filer_pb.DownlonewEntry := entry.ShallowClone()newEntry.Chunks = chunksnewEntry.Remote = proto.Clone(entry.Remote).(*filer_pb.RemoteEntry)- newEntry.Remote.LocalMtime = time.Now().Unix()+ newEntry.Remote.LocalMtime = entry.Mtime.Unix()// this skips meta data log eventsdiff --git a/weed/shell/command_remote_cache.go b/weed/shell/command_remote_cache.goindex c74166611c..8980fc82e5 100644--- a/weed/shell/command_remote_cache.go+++ b/weed/shell/command_remote_cache.go@@ -118,7 +118,7 @@ func shouldCacheToLocal(entry *filer_pb.Entry) bool {if entry.RemoteEntry == nil {return false}- if entry.RemoteEntry.LocalMtime == 0 && entry.RemoteEntry.RemoteSize > 0 {+ if entry.RemoteEntry.LocalMtime < entry.Attributes.Mtime && entry.RemoteEntry.RemoteSize > 0 {return true}return false