Nobilta opened a new issue, #9196:
URL: https://github.com/apache/apisix/issues/9196
### Description
I found that every time I modify the route, the
`create_radixtree_uri_router` function in `radixtree_uri.lua` is triggered.And
i found no function about delete radixtree node in `easy_rax.c`.In my opinion,i
think it will delete useless node or add new node on the same radixtree when i
modify route,instead of present.I'm wondering why radixtree is being edited
this way now, or what's wrong with the way I said.
```
//radixtree_uri.lua
function _M.match(api_ctx)
local user_routes = _M.user_routes
if not cached_version or cached_version ~= user_routes.conf_version then
uri_router =
base_router.create_radixtree_uri_router(user_routes.values,
uri_routes,
false)
cached_version = user_routes.conf_version
end
if not uri_router then
core.log.error("failed to fetch valid `uri` router: ")
return true
end
return base_router.match_uri(uri_router, match_opts, api_ctx)
end
```
### Environment
- APISIX version (run `apisix version`):2.9
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]