trie: add back stacktrie-resetting of writeFn on Reset

This commit is contained in:
Martin Holst Swende 2023-10-09 08:48:29 +02:00
parent a2fb3f3191
commit 687e54a5d2
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -81,6 +81,7 @@ func (t *StackTrie) MustUpdate(key, value []byte) {
} }
func (t *StackTrie) Reset() { func (t *StackTrie) Reset() {
t.writeFn = nil
t.root = stPool.Get().(*stNode) t.root = stPool.Get().(*stNode)
} }