Skip to content

Commit

Permalink
Final fix for ClearPrefixLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Mar 15, 2022
1 parent 9879936 commit 0a77d88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ func (t *Trie) clearPrefixLimitBranch(branch *node.Branch, prefix []byte, limit

branch = t.prepBranchForMutation(branch)
branch.Children[childIndex] = child
branch.SubDescendants(nodesRemoved)
newParent, branchChildMerged := handleDeletion(branch, prefix)
if branchChildMerged {
nodesRemoved++
Expand Down

0 comments on commit 0a77d88

Please sign in to comment.