fix key corrupt when fs.configure copy path trie (#4353)

Signed-off-by: changlin.shi <changlin.shi@ly.com>
This commit is contained in:
LHHDZ
2023-03-30 02:29:44 +08:00
committed by GitHub
parent ff649d615d
commit 8e80ce9476

View File

@@ -125,7 +125,8 @@ func (fc *FilerConf) DeleteLocationConf(locationPrefix string) {
if string(key) == locationPrefix { if string(key) == locationPrefix {
return true return true
} }
rules.Put(key, value) key = bytes.Clone(key)
_ = rules.Put(key, value)
return true return true
}) })
fc.rules = rules fc.rules = rules