trie: fix flaw in stacktrie pool reuse (#21699)
This commit is contained in:
parent
94d1f5888a
commit
348c3bc47d
|
@ -113,7 +113,7 @@ func (st *StackTrie) Update(key, value []byte) {
|
||||||
func (st *StackTrie) Reset() {
|
func (st *StackTrie) Reset() {
|
||||||
st.db = nil
|
st.db = nil
|
||||||
st.key = st.key[:0]
|
st.key = st.key[:0]
|
||||||
st.val = st.val[:0]
|
st.val = nil
|
||||||
for i := range st.children {
|
for i := range st.children {
|
||||||
st.children[i] = nil
|
st.children[i] = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue