tzssangglass commented on a change in pull request #2943:
URL: https://github.com/apache/apisix/pull/2943#discussion_r536517191
##########
File path: apisix/http/router/radixtree_host_uri.lua
##########
@@ -95,7 +95,8 @@ local function create_radixtree_router(routes)
for _, route in ipairs(routes or {}) do
local status = core.table.try_read_attr(route, "value", "status")
- if status and status ~= 1 then
+ -- check the status
+ if status and status == 0 then
Review comment:
will there be incompatibilities?
such as an existing route in etcd does not have the `status` attribute?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]