Implement the segment freeze process:
- Start new hot segment immediately (new segment accepts writes)
- Build cold segment from old hot segment using cold segment writer
- If using LiveWriter:
Freeze() in-place, then build index files
- If using flat files/RocksDB: read events, produce cold segment
- Old hot segment continues serving reads during freeze
- Mark segment as frozen in DB atomically after all cold files are written
- Discard old hot segment files and in-memory index
Add tests for: freeze produces valid cold segment, concurrent reads during freeze, two hot segments coexist briefly.
Implement the segment freeze process:
Freeze()in-place, then build index filesAdd tests for: freeze produces valid cold segment, concurrent reads during freeze, two hot segments coexist briefly.