aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-02-25 22:38:27 -0800
committerChris Lu <chris.lu@gmail.com>2020-02-25 22:38:27 -0800
commit36d6595658fbd42634c3b3121a490e519bc579fb (patch)
treece3b9a9c4c3b2e3584fde181fbda470ada0f0c7c /weed/filesys
parentfd9612d66ef69ba699cd733eccf1ef9940c1d91f (diff)
downloadseaweedfs-36d6595658fbd42634c3b3121a490e519bc579fb.tar.xz
seaweedfs-36d6595658fbd42634c3b3121a490e519bc579fb.zip
remove ctx
Diffstat (limited to 'weed/filesys')
-rw-r--r--weed/filesys/dir.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go
index 7dcd45f2e..1b11ddb9e 100644
--- a/weed/filesys/dir.go
+++ b/weed/filesys/dir.go
@@ -354,7 +354,7 @@ func (dir *Dir) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fus
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))
- 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))
- return dir.saveEntry(ctx)
+ return dir.saveEntry()
}
@@ -428,7 +428,7 @@ func (dir *Dir) maybeLoadEntry() error {
return nil
}
-func (dir *Dir) saveEntry(ctx context.Context) error {
+func (dir *Dir) saveEntry() error {
parentDir, name := filer2.FullPath(dir.Path).DirAndName()