From 947add39e6b2bca54ddc04fd33be28868cae8a0f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 4 Oct 2021 02:31:38 -0700 Subject: [PATCH] clean up *SkipListElementReference loaded from Redis --- weed/filer/redis3/skiplist_element_store.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/weed/filer/redis3/skiplist_element_store.go b/weed/filer/redis3/skiplist_element_store.go index fa13d35e9..66a5408d6 100644 --- a/weed/filer/redis3/skiplist_element_store.go +++ b/weed/filer/redis3/skiplist_element_store.go @@ -48,5 +48,15 @@ func (m *SkipListElementStore) LoadElement(id int64) (*skiplist.SkipListElement, } t := &skiplist.SkipListElement{} err = proto.Unmarshal([]byte(data), t) + if err == nil { + for i:=0;i