You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/07/02 23:10:45 UTC
[incubator-apisix] branch master updated: bugfix: missing argument
`premature` because it was called by ngx.timer . (#1796)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push:
new e6e387a bugfix: missing argument `premature` because it was called by ngx.timer . (#1796)
e6e387a is described below
commit e6e387a1c5e352cff4645f9da08bc580eb2ba1c2
Author: jackstraw <93...@qq.com>
AuthorDate: Fri Jul 3 07:10:36 2020 +0800
bugfix: missing argument `premature` because it was called by ngx.timer . (#1796)
---
apisix/core/config_yaml.lua | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/apisix/core/config_yaml.lua b/apisix/core/config_yaml.lua
index 7803dec..eed861f 100644
--- a/apisix/core/config_yaml.lua
+++ b/apisix/core/config_yaml.lua
@@ -58,7 +58,10 @@ local mt = {
local apisix_yaml
local apisix_yaml_ctime
-local function read_apisix_yaml(pre_mtime)
+local function read_apisix_yaml(premature, pre_mtime)
+ if premature then
+ return
+ end
local attributes, err = lfs.attributes(apisix_yaml_path)
if not attributes then
log.error("failed to fetch ", apisix_yaml_path, " attributes: ", err)