[tarantool-patches] Re: [PATCH 1/3] Set a lua state for the main fiber too
Konstantin Osipov
kostja at tarantool.org
Wed Sep 26 02:27:57 MSK 2018
* Georgy Kirichenko <georgy at tarantool.org> [18/09/22 00:21]:
> The main fiber should have a lua state as any other lua fiber.
> ---
> src/lua/init.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/lua/init.c b/src/lua/init.c
> index 8e148904a..07bcca1b9 100644
> --- a/src/lua/init.c
> +++ b/src/lua/init.c
> @@ -628,6 +628,7 @@ tarantool_lua_run_script(char *path, bool interactive,
> script_fiber = fiber_new(title, run_script_f);
> if (script_fiber == NULL)
> panic("%s", diag_last_error(diag_get())->errmsg);
> + script_fiber->storage.lua.stack = tarantool_L;
> fiber_start(script_fiber, tarantool_L, path, interactive,
> optc, optv, argc, argv);
OK to push.
--
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov
More information about the Tarantool-patches
mailing list