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 23, 2022
1 parent 1c3ca38 commit dbb8533
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 dbb8533

Please sign in to comment.