You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2020/11/16 05:08:38 UTC
[apisix] branch master updated: call the checker:clear() before
call the checker:stop() . (#2747)
This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 4d316bc call the checker:clear() before call the checker:stop() . (#2747)
4d316bc is described below
commit 4d316bc0681c80435ab1a3fc113c3c6ea3c82831
Author: idbeta <id...@gmail.com>
AuthorDate: Mon Nov 16 13:08:31 2020 +0800
call the checker:clear() before call the checker:stop() . (#2747)
---
apisix/balancer.lua | 2 ++
1 file changed, 2 insertions(+)
diff --git a/apisix/balancer.lua b/apisix/balancer.lua
index 4eba0bb..d80cb67 100644
--- a/apisix/balancer.lua
+++ b/apisix/balancer.lua
@@ -106,12 +106,14 @@ local function create_checker(upstream, healthcheck_parent)
if upstream.parent then
core.table.insert(upstream.parent.clean_handlers, function ()
core.log.info("try to release checker: ", tostring(checker))
+ checker:clear()
checker:stop()
end)
else
core.table.insert(healthcheck_parent.clean_handlers, function ()
core.log.info("try to release checker: ", tostring(checker))
+ checker:clear()
checker:stop()
end)
end