vinyl: keep track of empty runs
We store some extra info in vylog per each run, even an empty one. Currently, its min and max LSN over all statements written to the run file so for an empty run they don't make sense right now. However, it's going to change: soon we will store min and max LSN spanned by the run. So we should keep track of empty runs. In order not to create empty data files, we add is_empty flag to the vy_log_record, which indicates that the run is empty and has no data file.
Showing
- src/box/vinyl.c 30 additions, 53 deletionssrc/box/vinyl.c
- src/box/vy_log.c 28 additions, 3 deletionssrc/box/vy_log.c
- src/box/vy_log.h 9 additions, 2 deletionssrc/box/vy_log.h
- test/vinyl/layout.result 40 additions, 23 deletionstest/vinyl/layout.result
- test/vinyl/layout.test.lua 6 additions, 1 deletiontest/vinyl/layout.test.lua
Loading
Please register or sign in to comment