Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final fix for ClearPrefixLimit
Browse files Browse the repository at this point in the history
qdm12 committed Mar 9, 2022
1 parent 78279bd commit 24bb458
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
@@ -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++

0 comments on commit 24bb458

Please sign in to comment.