c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
813 stars 83 forks source link

bugfix: insert path success, but get data failed #135

Closed fishgege closed 2 years ago

fishgege commented 4 years ago

background : use r3_tree_insert_pathl_ex to add path,A : abcdefg B:abc When the node A already exists, we set B, then will split the node and make a branch, suboath_len is 0 In this case, branch a zero len subpath, which tree's data not set

membphis commented 4 years ago

Do we need to add a test case for confirming this?