Skip to content

Commit

Permalink
change: remove deprecated lua_shared_dicts (#7677)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzssangglass authored Aug 16, 2022
1 parent 21dc9d5 commit b0934f9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
5 changes: 0 additions & 5 deletions apisix/cli/ngx_tpl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,6 @@ http {
lua_shared_dict {*cache_key*} {*cache_size*};
{% end %}
{% end %}
{% if http.lua_shared_dicts then %}
{% for cache_key, cache_size in pairs(http.lua_shared_dicts) do %}
lua_shared_dict {*cache_key*} {*cache_size*};
{% end %}
{% end %}
{% if enabled_plugins["error-log-logger"] then %}
lua_capture_error_log 10m;
Expand Down
5 changes: 0 additions & 5 deletions apisix/cli/ops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,6 @@ Please modify "admin_key" in conf/config.yaml .
sys_conf["worker_processes"] = floor(tonumber(env_worker_processes))
end

if sys_conf["http"]["lua_shared_dicts"] then
stderr:write("lua_shared_dicts is deprecated, " ..
"use custom_lua_shared_dict instead\n")
end

local exported_vars = file.get_exported_vars()
if exported_vars then
if not sys_conf["envs"] then
Expand Down
16 changes: 0 additions & 16 deletions t/cli/test_http_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,6 @@ echo "passed: define custom shdict"

git checkout conf/config.yaml

echo '
nginx_config:
http:
lua_shared_dicts:
my_dict: 1m
' > conf/config.yaml

make init

if ! grep "lua_shared_dict my_dict 1m;" conf/nginx.conf > /dev/null; then
echo "failed: define custom shdict in the old way"
exit 1
fi

echo "passed: define custom shdict in the old way"

echo "
plugins:
- ip-restriction
Expand Down

0 comments on commit b0934f9

Please sign in to comment.