xdir: remove inprogress files after restart
If tarantool is stopped while writing a snapshot or a vinyl run file, inprogress files will never be removed. Fix this by collecting those files on recovery completion. Original patch by @IlyaMarkovMipt. Reworked by @locker. Closes #3406
Showing
- src/box/memtx_engine.c 1 addition, 0 deletionssrc/box/memtx_engine.c
- src/box/vinyl.c 3 additions, 0 deletionssrc/box/vinyl.c
- src/box/vy_log.c 7 additions, 1 deletionsrc/box/vy_log.c
- src/box/vy_run.c 29 additions, 12 deletionssrc/box/vy_run.c
- src/box/vy_run.h 2 additions, 0 deletionssrc/box/vy_run.h
- src/box/xlog.c 25 additions, 1 deletionsrc/box/xlog.c
- src/box/xlog.h 11 additions, 0 deletionssrc/box/xlog.h
- src/errinj.h 3 additions, 0 deletionssrc/errinj.h
- test/box/errinj.result 148 additions, 0 deletionstest/box/errinj.result
- test/box/errinj.test.lua 60 additions, 1 deletiontest/box/errinj.test.lua
Loading
Please register or sign in to comment