lua/trigger: cleanup lua stack after trigger run
This patch adds a stack cleanup after a trigger is run and its return values, if any, have been read. This problem was found in a case when on_schema_init trigger set an on_replace trigger on a space, and the trigger ran during recovery. This lead to Lua stack overflows for the aforementioned reasons. Closes #4275
Showing
- src/lua/trigger.c 6 additions, 0 deletionssrc/lua/trigger.c
- test/box/before_replace.result 81 additions, 0 deletionstest/box/before_replace.result
- test/box/before_replace.test.lua 39 additions, 0 deletionstest/box/before_replace.test.lua
- test/box/on_schema_init.lua 27 additions, 0 deletionstest/box/on_schema_init.lua
test/box/on_schema_init.lua
0 → 100644
Please register or sign in to comment