Skip to content
Snippets Groups Projects
Commit 74cec5f5 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Nikita Pettik
Browse files

box: on cfg properly check memory quota


box_check_config() didn't check memtx_memory and vinyl_memory
upper bound. As a result, it was possible to set memory size
higher than what the quota allows as maximum.

That worked only when box.cfg() was called first time, because
quota_init() does not check its value. Subsequent box.cfg() calls
use quota_set(), which aborts the program if a size is too big.
Only in debug mode. In release quota_set() also worked with any
sizes.

Closes #4705

Reviewed-by: default avatarIgor Munkin <imun@tarantool.org>
Reviewed-by: default avatarNikita Pettik <korablev@tarantool.org>
parent 74a873d0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment