[tarantool-patches] Re: [PATCH 2/9] wal: remove files needed for recovery from backup checkpoints on ENOSPC

Konstantin Osipov kostja at tarantool.org
Thu Nov 29 19:31:03 MSK 2018


* Vladimir Davydov <vdavydov.dev at gmail.com> [18/11/28 19:16]:
> Tarantool always keeps box.cfg.checkpoint_count latest checkpoints. It
> also never deletes WAL files needed for recovery from any of them for
> the sake of redundancy, even if it gets ENOSPC while trying to write to
> WAL. This patch changes that behavior: now the WAL thread is allowed to
> delete backup WAL files in case of emergency ENOSPC - after all it's
> better than stopping operation.

If you wish WAL to be part of some of the engine APIs, such as
checkpointing, you could make it an engine and register in the
engine list. MySQL does it this way.

The patch is 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