mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 02:59:13 +08:00
fix nil filer conf
fix https://github.com/seaweedfs/seaweedfs/issues/6034
This commit is contained in:
parent
2b13d2c083
commit
99ae99e3b9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user