mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 23:49:23 +08:00
remove ctx
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user