Commit b49b341
committed
bug-fix: delayed flush of undo files
When creating blk and rev files, these are pre-allocated for performance reasons, and then truncated down to their final size after completion.
This works for blk files which are sequentially created, but since blocks are stored out of order, and since the undo data for blocks are stored sequentially (upon activation of the block), the rev file will be written to for awhile even after the blk file has been finalized. This change switches the flushing part to flush the *previous* undo file for the finalize (truncate) case, which addresses the problem, as we never write to the rev file 2 steps back.1 parent 04f78b8 commit b49b341
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1735 | 1735 | | |
1736 | 1736 | | |
1737 | 1737 | | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1738 | 1744 | | |
1739 | | - | |
| 1745 | + | |
1740 | 1746 | | |
1741 | 1747 | | |
1742 | 1748 | | |
| |||
0 commit comments