From e9812b95e68bf37e18d0149fc0d3c61f454efe9e Mon Sep 17 00:00:00 2001 From: chronolaw Date: Thu, 1 Sep 2022 10:58:22 +0800 Subject: [PATCH] assert(inst:remove_matcher(id)) --- kong/router/atc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kong/router/atc.lua b/kong/router/atc.lua index 84e4b84373e0..bfe043429cb9 100644 --- a/kong/router/atc.lua +++ b/kong/router/atc.lua @@ -231,7 +231,8 @@ local function new_from_previous(routes, get_exp_priority, old_router) r.seen = nil else - inst:remove_matcher(id) + assert(inst:remove_matcher(id)) + old_routes[id] = nil old_services[id] = nil end