horaedb
horaedb copied to clipboard
feat: Implementing cross-segment read/write for WAL based on local disk
Rationale
Improving WAL based on local disk.
This is a follow-up task for #1552.
Detailed Changes
- Make MAX_FILE_SIZE configurable.
- Allocate enough space when creating a segment to avoid remapping when appending to the segment.
- Add
MultiSegmentLogIteratorto enable cross-segment reading. - When writing, if the current segment has insufficient space, create a new segment and write to the new segment.
Test Plan
Unit test.