aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-09-17 11:07:29 -0700
committerchrislu <chris.lu@gmail.com>2024-09-17 11:07:29 -0700
commit99ae99e3b917e40af5029a805415b802e90689d7 (patch)
treed001110bd3d4ac8a0514cdb6e03da204842ec49a
parent2b13d2c083a8cf2e1efc616e3301ce590c78cf11 (diff)
downloadseaweedfs-99ae99e3b917e40af5029a805415b802e90689d7.tar.xz
seaweedfs-99ae99e3b917e40af5029a805415b802e90689d7.zip
fix nil filer conf
fix https://github.com/seaweedfs/seaweedfs/issues/6034
-rw-r--r--weed/mount/filer_conf.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/mount/filer_conf.go b/weed/mount/filer_conf.go
index a08d766e8..ef8508023 100644
--- a/weed/mount/filer_conf.go
+++ b/weed/mount/filer_conf.go
@@ -108,6 +108,9 @@ func (wfs *WFS) wormEnabledForEntry(path util.FullPath, entry *filer_pb.Entry) b
if entry == nil || entry.Attributes == nil {
return false
}
+ if wfs.FilerConf == nil {
+ return false
+ }
rule := wfs.FilerConf.MatchStorageRule(string(path))
if !rule.Worm {