Skip to content

Commit

Permalink
fix key corrupt when fs.configure copy path trie (seaweedfs#4353)
Browse files Browse the repository at this point in the history
Signed-off-by: changlin.shi <[email protected]>
  • Loading branch information
shichanglin5 authored Mar 29, 2023
1 parent ff649d6 commit 8e80ce9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weed/filer/filer_conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e80ce9

Please sign in to comment.