[tarantool-patches] [PATCH] lua: fix assertion failure after improper box.schema.user:passwd() call
Vladimir Davydov
vdavydov.dev at gmail.com
Mon Sep 17 18:42:56 MSK 2018
On Mon, Sep 17, 2018 at 05:48:53PM +0300, Serge Petrenko wrote:
> diff --git a/src/box/lua/session.c b/src/box/lua/session.c
> index b2e1400b6..7541da0a7 100644
> --- a/src/box/lua/session.c
> +++ b/src/box/lua/session.c
> @@ -201,8 +201,11 @@ lbox_session_su(struct lua_State *L)
> /* Restore the original credentials. */
> fiber_set_user(fiber(), old_credentials);
>
> - if (error)
> + if (error) {
> + luaT_toerror(L);
> luaT_error(L);
> + }
> +
Turns out we can simply use lua_error() instead.
I fixed it and pushed the patch to 1.10.
More information about the Tarantool-patches
mailing list