go-radix icon indicating copy to clipboard operation
go-radix copied to clipboard

Fix panic when node is deleted while walking

Open SamWhited opened this issue 4 years ago • 2 comments

If a node is deleted from within the walk function, currently the recursive walk will panic if it then tries to go down that branch. Instead, terminate walking that branch.

SamWhited avatar Sep 20 '19 17:09 SamWhited

ping @armon @mitchellh PTAL 🤗 <3

thaJeztah avatar Sep 11 '20 15:09 thaJeztah

oh, looks like the repository may be gone; carried the change in https://github.com/armon/go-radix/pull/14

thaJeztah avatar Sep 11 '20 15:09 thaJeztah