webdav: fix nil

fix https://github.com/seaweedfs/seaweedfs/issues/3440
This commit is contained in:
chrislu 2022-08-14 23:33:30 -07:00
parent 6199d9b923
commit 789d9dbfe1

View file

@ -76,7 +76,6 @@ func NewWebDavServer(option *WebDavOption) (ws *WebDavServer, err error) {
type WebDavFileSystem struct {
option *WebDavOption
secret security.SigningKey
filer *filer.Filer
grpcDialOption grpc.DialOption
chunkCache *chunk_cache.TieredChunkCache
signature int32
@ -138,7 +137,7 @@ func (fs *WebDavFileSystem) AdjustedUrl(location *filer_pb.Location) string {
return location.Url
}
func (fs *WebDavFileSystem) GetDataCenter() string {
return fs.filer.MasterClient.DataCenter
return ""
}
func clearName(name string) (string, error) {