Skip to content

Commit 33a55c5

Browse files
fix
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
1 parent 939986a commit 33a55c5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apisix/plugin.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,11 +1329,10 @@ function _M.run_global_rules(api_ctx, global_rules, conf_version, phase_name)
13291329
api_ctx.global_rules = global_rules
13301330
end
13311331

1332-
local dummy_global_rule = merge_global_rule_lrucache(conf_version, global_rules, merge_global_rules, global_rules)
1333-
if not dummy_global_rule then
1334-
core.log.error("failed to get merged global rules form cache, using merge_global_rules instead")
1335-
dummy_global_rule = merge_global_rules(global_rules)
1336-
end
1332+
local dummy_global_rule = merge_global_rule_lrucache(conf_version,
1333+
global_rules,
1334+
merge_global_rules,
1335+
global_rules)
13371336

13381337
local plugins = core.tablepool.fetch("plugins", 32, 0)
13391338
local route = api_ctx.matched_route

0 commit comments

Comments
 (0)