A pre-requisite patch for Lua stored procedures: fiber->pool.
A pre-requisite patch for Lua stored procedures: in some cases, it would be nice to create a Lua context in connection and destroy it when a connection ends. Unfortunately, right now fiber connections are stateless: there is on fiber constructor, destructor, or non-global fiber state. Change that by introducing fiber->pool, an allocation pool in which memory lives till a fiber is destroyed or becomes a zombie. We already have fiber->pool, which life cycle is different: it is created when a fiber starts, destroyed when a fiber ends, but also is garbage-collected once in a while. Rename this pool to fiber->gc_pool, to allow using name 'fiber->pool for something else. This patch only performs a rename and does nothing else.
Showing
- core/admin.m 2 additions, 2 deletionscore/admin.m
- core/admin.rl 2 additions, 2 deletionscore/admin.rl
- core/fiber.m 27 additions, 27 deletionscore/fiber.m
- core/iproto.m 1 addition, 1 deletioncore/iproto.m
- core/log_io.m 11 additions, 11 deletionscore/log_io.m
- core/replication.m 1 addition, 1 deletioncore/replication.m
- core/tarantool.m 1 addition, 1 deletioncore/tarantool.m
- include/errcode.h 1 addition, 1 deletioninclude/errcode.h
- include/fiber.h 2 additions, 1 deletioninclude/fiber.h
- mod/CMakeLists.txt 1 addition, 1 deletionmod/CMakeLists.txt
- mod/box/box.m 11 additions, 11 deletionsmod/box/box.m
- mod/box/index.m 1 addition, 1 deletionmod/box/index.m
- mod/box/memcached-grammar.m 8 additions, 8 deletionsmod/box/memcached-grammar.m
- mod/box/memcached-grammar.rl 4 additions, 4 deletionsmod/box/memcached-grammar.rl
- mod/box/memcached.m 4 additions, 4 deletionsmod/box/memcached.m
Loading
Please register or sign in to comment