A fix and a test case for Bug#928413 "Lua malfunctions..."
We didn't check whether or not Lua bindings executed correctly, so we didn't pay attention to these problems: luaL_Buffer was misused, and when configuration would exceed 4K allocated on stack, this led to lost pieces of Lua script prepared by tarantool_lua_load_cfg(). box.on_reload_configuration() did not work correctly with disabled spaces. Fix the above mentioned issued and add a test.
Showing
- core/tarantool_lua.m 6 additions, 6 deletionscore/tarantool_lua.m
- mod/box/box.lua 5 additions, 3 deletionsmod/box/box.lua
- test/box/configuration.result 12 additions, 0 deletionstest/box/configuration.result
- test/box/configuration.test 12 additions, 0 deletionstest/box/configuration.test
- test/box/tarantool_bug928413.cfg 158 additions, 0 deletionstest/box/tarantool_bug928413.cfg
Loading
Please register or sign in to comment