mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
update metadata only if changed
This commit is contained in:
parent
003d48da21
commit
e0bfd3161a
|
@ -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()
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue