HomePhabricator

Stop parsing the radix tree if the callback function returns false

Description

Stop parsing the radix tree if the callback function returns false

Summary: This diff lets the callsite decide to continue or stop the tree traversal at each leaf. Returning true continue the loop, and returning false stops it.

Test Plan:

ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D11459

Details

Provenance
FabienAuthored on May 13 2022, 14:20
FabienPushed on May 13 2022, 23:42
Reviewer
Restricted Project
Differential Revision
D11459: Stop parsing the radix tree if the callback function returns false
Parents
rABC28064258b769: [RCU] Run a lazy round of cleanup when unlocking the RCULock
Branches
Unknown
Tags
Unknown