[Tarantool-patches] [PATCH] Add a cancellation guard to cpipe flush callback

Konstantin Osipov kostja.osipov at gmail.com
Tue Dec 3 21:02:57 MSK 2019


* Leonid Vasiliev <lvasiliev at tarantool.org> [19/12/03 19:36]:
> https://github.com/tarantool/tarantool/issues/4127
> https://github.com/tarantool/tarantool/tree/lvasiliev/gh-4127-WAL-thread-stucks

Looks like a great catch.

> We need to set a thread cancellation guard, because
> another thread may cancel the current thread
> (write() is a cancellation point in ev_async_send)
> and the activation of the ev_async watcher
> through ev_async_send will fail.

I still don't get from the explanation why it is relevant that
ev_async_send mustn't fail?


-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list