[PATCH v2] box: enable WAL before making initial checkpoint

Konstantin Osipov kostja at tarantool.org
Mon Feb 11 15:41:56 MSK 2019

* Vladimir Davydov <vdavydov.dev at gmail.com> [19/02/11 15:34]:
> While a replica is bootstrapped from a remote master, vinyl engine
> may need to perform compaction, which means that it may write to
> the _vinyl_deferred_delete system space. Compaction proceeds fully
> asynchronously, i.e. a write may occur after the join stage is
> complete, but before the WAL is initialized, in which case the new
> replica will crash. To make sure a race like that won't happen, let's
> setup WAL before making the initial checkpoint. The WAL writer is now
> initialized right before starting the WAL thread and so we don't need
> to split WAL struct into the thread and the writer anymore.
> Closes #3968

OK to push.


Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov

More information about the Tarantool-patches mailing list