diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-03 00:24:35 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-03 00:24:35 -0700 |
| commit | b30c14b6314c96e0cb0c110e2aa1fc206857a066 (patch) | |
| tree | 88e6fc7e72b1f341a67c8d792dff4732a7c87f80 /weed/filesys/file.go | |
| parent | 47f14775d7d9a47e0d123aa174fb1f1f75bce547 (diff) | |
| download | seaweedfs-b30c14b6314c96e0cb0c110e2aa1fc206857a066.tar.xz seaweedfs-b30c14b6314c96e0cb0c110e2aa1fc206857a066.zip | |
webdav: can read now
Diffstat (limited to 'weed/filesys/file.go')
| -rw-r--r-- | weed/filesys/file.go | 4 |
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, |
