[Tarantool-patches] [PATCH] cbus: fix inconsistency in endpoint creation

Kirill Yukhin kyukhin at tarantool.org
Fri Apr 24 10:57:15 MSK 2020


Hello,

On 22 апр 22:56, Cyrill Gorcunov wrote:
> The notification of wait variable shall be done under
> a bound mutex locked. Otherwise the results are not
> guaranteed (see pthread manuals).
> 
> Thus when we create a new endpoint via cbus_endpoint_create
> and there is an other thread which sleeps inside cpipe_create
> we should notify the sleeper under cbus.mutex.
> 
> Fixes #4806
> 
> Reported-by: Alexander Turenko <alexander.turenko at tarantool.org>
> Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>

LGTM.

I've checked your patch into 1.10, 2.3, 2.4 and master.

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list