Skip to content

Commit

Permalink
update the lmdb_map_size to 2048m
Browse files Browse the repository at this point in the history
  • Loading branch information
catbro666 committed Jul 21, 2023
1 parent 064c406 commit 9d52b5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/01-unit/04-prefix_handler_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ describe("NGINX conf compiler", function()
}))
local main_inject_conf = prefix_handler.compile_nginx_main_inject_conf(conf)
assert.matches("lmdb_environment_path%s+dbless.lmdb;", main_inject_conf)
assert.matches("lmdb_map_size%s+128m;", main_inject_conf)
assert.matches("lmdb_map_size%s+2048m;", main_inject_conf)
end)
end)

Expand Down
4 changes: 2 additions & 2 deletions spec/01-unit/28-inject_directives_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("construct_cmd", function()
]]
local main_conf_off = [[
lmdb_environment_path /usr/local/kong/dbless.lmdb;
lmdb_map_size 128m;
lmdb_map_size 2048m;
]]
local http_conf = [[
lua_ssl_verify_depth 1;
Expand Down Expand Up @@ -55,7 +55,7 @@ lua_ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
]]
local main_conf_off = fmt([[
lmdb_environment_path %s/servroot/dbless.lmdb;
lmdb_map_size 128m;
lmdb_map_size 2048m;
]], cwd)
local http_conf = fmt([[
lua_ssl_verify_depth 1;
Expand Down

0 comments on commit 9d52b5e

Please sign in to comment.