Skip to content
Snippets Groups Projects
user avatar
Vladislav Shpilevoy authored
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>
74cec5f5
History