trie: fix flaw in stacktrie pool reuse (#21699)

pull/21706/head
Martin Holst Swende 4 years ago committed by GitHub
parent 94d1f5888a
commit 348c3bc47d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      trie/stacktrie.go

@ -113,7 +113,7 @@ func (st *StackTrie) Update(key, value []byte) {
func (st *StackTrie) Reset() {
st.db = nil
st.key = st.key[:0]
st.val = st.val[:0]
st.val = nil
for i := range st.children {
st.children[i] = nil
}

Loading…
Cancel
Save