[Tarantool-patches] [PATCH 1/1] txn_limbo: reduce fiber_set_cancellable() calls

Cyrill Gorcunov gorcunov at gmail.com
Thu Jul 30 11:47:45 MSK 2020


On Thu, Jul 30, 2020 at 01:41:20AM +0200, Vladislav Shpilevoy wrote:
> The calls were added before and after each cond_wait() so as the
> fiber couldn't be woken up externally. For example, from Lua.
> 
> But it is not necessary to flip the flag on each wait() call. It
> is enough to make it 2 times: forbid cancellation in the beginning
> of txn_limbo_wait_complete(), and return the old value back in the
> end.
> ---
Ack


More information about the Tarantool-patches mailing list