aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/file.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2019-05-03 01:25:10 -0700
committerGitHub <noreply@github.com>2019-05-03 01:25:10 -0700
commit9d3c945b00e11e3cdd492abfcfb370291b98f686 (patch)
treecb902217b4d37c81e4f23fb4ec3c9bcdc77f0fa2 /weed/filesys/file.go
parentac52db3bedbba647cb4531444e16914e6d17b06a (diff)
parent7064b2ea48c541904a5a1ba9c144cbe3c070a1d4 (diff)
downloadseaweedfs-9d3c945b00e11e3cdd492abfcfb370291b98f686.tar.xz
seaweedfs-9d3c945b00e11e3cdd492abfcfb370291b98f686.zip
Merge pull request #950 from chrislusf/webdav
add WebDav
Diffstat (limited to 'weed/filesys/file.go')
-rw-r--r--weed/filesys/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index eb4b03f64..3015354a6 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -109,7 +109,7 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
return nil
}
- return file.wfs.withFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
+ return file.wfs.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
request := &filer_pb.UpdateEntryRequest{
Directory: file.dir.Path,
@@ -144,7 +144,7 @@ func (file *File) maybeLoadAttributes(ctx context.Context) error {
file.setEntry(entry)
// glog.V(1).Infof("file attr read cached %v attributes", file.Name)
} else {
- err := file.wfs.withFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
+ err := file.wfs.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error {
request := &filer_pb.LookupDirectoryEntryRequest{
Name: file.Name,