mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-03-20 09:01:05 +08:00
The commitlog so far assumed that the latest segment is never compressed and can be opened for writing (if it is intact). However, restoring the entire commitlog from cold storage results in all segments being compressed. Make it so the resumption logic reads the metadata from the potentially compressed last segment, and starts a new segment for writing if the latest one was indeed compressed. # Expected complexity level and risk 1.5 # Testing Added a test.
⚠️ Internal Crate ⚠️
This crate is intended for internal use only. It is not stable and may change without notice.