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

This commit is contained in:
Martin Holst Swende 2020-10-13 13:21:25 +02:00 committed by Daniel Liu
parent 1424987768
commit 87270e3988

View file

@ -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
}