mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-27 15:30:45 +01:00
update metadata only if changed
This commit is contained in:
1 parent
003d48da21
commit
e0bfd3161a
1 file changed
+4
@@ -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()
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user