Unverified Commit 348c3bc4 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub

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

parent 94d1f588
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment