diff --git a/weed/filer/filer_conf.go b/weed/filer/filer_conf.go index b12d54fc8..f3a25242d 100644 --- a/weed/filer/filer_conf.go +++ b/weed/filer/filer_conf.go @@ -125,7 +125,8 @@ func (fc *FilerConf) DeleteLocationConf(locationPrefix string) { if string(key) == locationPrefix { return true } - rules.Put(key, value) + key = bytes.Clone(key) + _ = rules.Put(key, value) return true }) fc.rules = rules