From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Ilya Markov Subject: [PATCH 0/2 v4] xdir: Remove inprogress files on start Date: Wed, 20 Jun 2018 16:48:01 +0300 Message-Id: In-Reply-To: <20180620120853.4nell7bxgbmjjffy@esperanza> References: <20180620120853.4nell7bxgbmjjffy@esperanza> To: vdavydov.dev@gmail.com Cc: georgy@tarantool.org, tarantool-patches@freelists.org List-ID: branch: https://github.com/tarantool/tarantool/tree/gh-3406-remove-inprogress-files issue: https://github.com/tarantool/tarantool/issues/3406 Changes in v4: - Make xdir_collect_inprogress return void. - Add 2 vy_file_types for inprogress files. - Change error injections using labels. - Change test with box.snapshot instead of big tuples inserting. - Change log message in xdir_collect_garbage and vy_run_remove_files. - Get rid of remove_file function in vy_run.c. - Remove unnecessary lines. Ilya Markov (2): xdir: Change log messages in gc functions xlog: Remove inprogress files on start src/box/memtx_engine.c | 1 + src/box/vinyl.c | 3 + src/box/vy_log.c | 7 +- src/box/vy_run.c | 31 ++++++--- src/box/vy_run.h | 2 + src/box/xlog.c | 47 ++++++++++--- src/box/xlog.h | 11 +++ src/errinj.h | 3 + test/box/errinj.result | 171 +++++++++++++++++++++++++++++++++++++++++++++++ test/box/errinj.test.lua | 64 ++++++++++++++++++ 10 files changed, 323 insertions(+), 17 deletions(-) -- 2.7.4