1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-03 23:56:41 +02:00

remove ctx

This commit is contained in:
Chris Lu 2020-02-25 22:38:27 -08:00
parent fd9612d66e
commit 36d6595658

View file

@ -354,7 +354,7 @@ func (dir *Dir) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fus
dir.wfs.cacheDelete(filer2.FullPath(dir.Path)) dir.wfs.cacheDelete(filer2.FullPath(dir.Path))
return dir.saveEntry(ctx) return dir.saveEntry()
} }
@ -372,7 +372,7 @@ func (dir *Dir) Setxattr(ctx context.Context, req *fuse.SetxattrRequest) error {
dir.wfs.cacheDelete(filer2.FullPath(dir.Path)) dir.wfs.cacheDelete(filer2.FullPath(dir.Path))
return dir.saveEntry(ctx) return dir.saveEntry()
} }
@ -390,7 +390,7 @@ func (dir *Dir) Removexattr(ctx context.Context, req *fuse.RemovexattrRequest) e
dir.wfs.cacheDelete(filer2.FullPath(dir.Path)) dir.wfs.cacheDelete(filer2.FullPath(dir.Path))
return dir.saveEntry(ctx) return dir.saveEntry()
} }
@ -428,7 +428,7 @@ func (dir *Dir) maybeLoadEntry() error {
return nil return nil
} }
func (dir *Dir) saveEntry(ctx context.Context) error { func (dir *Dir) saveEntry() error {
parentDir, name := filer2.FullPath(dir.Path).DirAndName() parentDir, name := filer2.FullPath(dir.Path).DirAndName()