Skip to content

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.

update metadata only if changed

Chris Lue0bfd3161a51
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index ec7ece604a..644dd03477 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -170,6 +170,10 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
return nil
}
+ if !file.dirtyMetadata {
+ return nil
+ }
+
return file.saveEntry()
}