From 789d9dbfe1529d195514e871256af66ed12da9a2 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 14 Aug 2022 23:33:30 -0700 Subject: [PATCH] webdav: fix nil fix https://github.com/seaweedfs/seaweedfs/issues/3440 --- weed/server/webdav_server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weed/server/webdav_server.go b/weed/server/webdav_server.go index 475458808..90a1e42c1 100644 --- a/weed/server/webdav_server.go +++ b/weed/server/webdav_server.go @@ -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) {