[#306] Fix forming key for bucket cache

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2024-03-01 16:09:33 +03:00
parent fabb4134bc
commit e9f38a49e4
3 changed files with 6 additions and 5 deletions

View file

@ -65,6 +65,6 @@ func (o *BucketCache) Delete(bkt *data.BucketInfo) bool {
return o.cache.Remove(formKey(bkt.Zone, bkt.Name))
}
func formKey(ns, name string) string {
return name + "." + ns
func formKey(zone, name string) string {
return name + "." + zone
}