[tarantool-patches] [PATCH 1/3] Set a lua state for the main fiber too

Georgy Kirichenko georgy at tarantool.org
Fri Sep 21 16:20:53 MSK 2018


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);
 
-- 
2.19.0





More information about the Tarantool-patches mailing list