Browse Source
fix key corrupt when fs.configure copy path trie (#4353)
Signed-off-by: changlin.shi <changlin.shi@ly.com>
pull/4361/head
LHHDZ
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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 |
|
|
|