Skip to content
Snippets Groups Projects
Commit 9039df9c authored by Georgy Kirichenko's avatar Georgy Kirichenko Committed by Vladimir Davydov
Browse files

Set lua state for main fiber too

The main fiber should have a lua state as any other lua fiber.

Needed for #3538
parent da505ee7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment