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
Invalidate mount meta cache more aggressively
nivekuil8c523d50ad48
diff --git a/weed/filesys/meta_cache/meta_cache_subscribe.go b/weed/filesys/meta_cache/meta_cache_subscribe.goindex 19f5e398a2..60e9d0c13d 100644--- a/weed/filesys/meta_cache/meta_cache_subscribe.go+++ b/weed/filesys/meta_cache/meta_cache_subscribe.go@@ -39,14 +39,10 @@ func SubscribeMetaEvents(mc *MetaCache, selfSignature int32, client filer_pb.Filerr := mc.AtomicUpdateEntryFromFiler(context.Background(), oldPath, newEntry)if err == nil {if message.OldEntry != nil && message.NewEntry != nil {- if message.OldEntry.Name == message.NewEntry.Name {- // no need to invalidate- } else {- oldKey := util.NewFullPath(resp.Directory, message.OldEntry.Name)- mc.invalidateFunc(oldKey)- newKey := util.NewFullPath(dir, message.NewEntry.Name)- mc.invalidateFunc(newKey)- }+ oldKey := util.NewFullPath(resp.Directory, message.OldEntry.Name)+ mc.invalidateFunc(oldKey)+ newKey := util.NewFullPath(dir, message.NewEntry.Name)+ mc.invalidateFunc(newKey)} else if message.OldEntry == nil && message.NewEntry != nil {// no need to invaalidate} else if message.OldEntry != nil && message.NewEntry == nil {