Expand description
Journal of the current segment: an append-only file.
Records accumulate in a buffer and are flushed to disk on sync; the
archiver calls it once a second. A process crash loses at most what has
accumulated since the last flush.
An existing journal is read in full when opened. If the tail is cut off in the middle of a record (the process was killed mid-write), the tail is truncated and the complete records before it are kept.
Structs§
Constants§
- MAGIC
- Format signature at the start of a journal and of a compressed segment.