[tarantool-patches] Re: [PATCH 03/10] vinyl: move vylog recovery to vylog thread

Konstantin Osipov kostja at tarantool.org
Sat Jun 1 11:36:00 MSK 2019


* Vladimir Davydov <vdavydov.dev at gmail.com> [19/05/17 17:54]:
> We used coio, because vylog was written from a WAL thread, which
> shouldn't be used for such a heavy operation as vylog recovery.
> Now, we can move it to the dedicated vylog thread. This allows
> us to simplify rotation logic as well: now most of work is done
> from the same function (vy_log_rotate_f) executed by vylog thread,
> not scattered between coio and WAL, as it used to be.

Why do we need to lock out the scheduler while rotating the log in
the first place? 

This is not anywhere in the comments, and vy_log was renamed from
xctl so I got lost in the commit history.

It's a pity it's not reflected in the comment.


-- 
Konstantin Osipov, Moscow, Russia




More information about the Tarantool-patches mailing list