[tarantool-patches] Re: [PATCH 1/5] swim: do not use ev_timer_start

Konstantin Osipov kostja at tarantool.org
Wed May 1 08:09:47 MSK 2019


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [19/05/01 08:07]:
> Appeared that libev changes 'ev_timer.at' field to a remaining
> time value, and it can't be used as a storage for a timeout. By
> the same reason ev_timer_start() can't be used to reuse a timer.
> 
> On the contrary, 'ev_timer.repeat' is not touched by libev, and
> ev_timer_again() allows to reuse a timer.
> 
> This patch replaces 'at' with 'repeat' and ev_timer_start() with
> ev_timer_again().
> 
> The bug was not detected by unit tests, because they implement
> their own event loop and do not change ev_timer.at. Now they do
> to prevent a regression.

OK to push.


-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32




More information about the Tarantool-patches mailing list