Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix nil filer conf

chrislu99ae99e3b917
diff --git a/weed/mount/filer_conf.go b/weed/mount/filer_conf.go
index a08d766e81..ef85080239 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 {