Skip to content
Snippets Groups Projects
Commit d8025e53 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Refactoring: remove the hack with storing txn in fiber.

Continue cherry-picking refactoring ideas from txn-refine
tree.
We only needed to store txn in fiber because in port_lua
implementation we needed to access lua_State.
Instead of keeping this indirect dependency, pass around ports
explicitly.
On the same token, make ports Objective C classes:
this is necessary to make them stateful.
In port_lua state keep a pointer to lua thread, and allocate
a new port_lua instance on each lbox_process call.
The port is currently allocated on fiber->gc_pool
and never destroyed.
parent 4aa49563
Loading
Loading
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