[Tarantool-patches] [PATCH 2/2] fiber: destroy fiber.storage created by iproto

Konstantin Osipov kostja.osipov at gmail.com
Sat Dec 14 15:33:33 MSK 2019


* Konstantin Osipov <kostja.osipov at gmail.com> [19/12/14 15:30]:
> I checked now, and Lua addeded debug.getupvalue() to Lua C API.
> 
> On other words, fiber storage now can be implemented in pure Lua,
> without any triggers. 
> 
> Back when we were writing, upvalue API was only available in C
> API, and AFAIR there was no way to access upvalues from Lua, this
> is why we had to come up with this hack.

The feature can actually be deprecated. There is now a completely
legitimate and easy to use way to have a request-local object with
a user defined destructor in pure Lua.

If you do want to keep it, you should try to minimized the damage
to the core, not extend it.

-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list