Branch: refs/heads/master
  Home:   https://github.com/mailru/tarantool
  Commit: d8025e5397c0f374b0bbfe70ddc41d08678b1ad5
      
https://github.com/mailru/tarantool/commit/d8025e5397c0f374b0bbfe70ddc41d08678b1ad5
  Author: Konstantin Osipov <[email protected]>
  Date:   2012-05-16 (Wed, 16 May 2012)

  Changed paths:
    M include/fiber.h
    M include/iproto.h
    A mod/box/box.h
    M mod/box/box.m
    M mod/box/box_lua.h
    M mod/box/box_lua.m
    M mod/box/memcached-grammar.m
    M mod/box/memcached-grammar.rl
    M mod/box/memcached.m
    M mod/box/port.h
    M mod/box/port.m
    M mod/box/request.h
    M mod/box/request.m
    M mod/box/txn.h
    M mod/box/txn.m
    M src/iproto.m

  Log Message:
  -----------
  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.



_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to