[Tarantool-patches] [PATCH] lua: lua_field_inspect_table without pushcfunction

Alexander Turenko alexander.turenko at tarantool.org
Fri May 22 17:05:30 MSK 2020


On Mon, May 18, 2020 at 12:37:48PM +0300, Sergey Kaplun wrote:
> Currently on encoding table we push cfunction (lua_field_try_serialize)
> to lua stack with additional lightuserdata and table value and after
> pcall that function to avoid a raise of error.

It is often used to catch 'not enough memory' error. Say, to avoid a
leak if some resource should be freed before reporting an error. Or when
you want to return an error instead of raising it.

Please, look whether it was added by intention and verify that
everything still good after the patch.


More information about the Tarantool-patches mailing list