• rjl493456442's avatar
    trie: wrap deletion in case trie.root is nil (#26365) · d3411b9f
    rjl493456442 authored
    This PR fixes an error in trie commit. If the trie.root is nil, it can be two possible scenarios:
    
    -  The trie was empty, and no change happens
    -  The trie was non-empty and all nodes are dropped
    
    For the latter one, we should collect the deletions and apply them into database(e.g. in PBSS).
    d3411b9f
utils.go 5.87 KB