summaryrefslogtreecommitdiff
path: root/src/storage/README.md
blob: 3c03dba091e8d651b398132a7448264b9ea997b6 (plain)
1
2
3
4
5
6
7
8
9
# Storage layer

The storage adapter owns `active.log`, `snapshot.bin`, the data-directory lock,
in-memory live/deleted state, synchronous PUT/DEL writes, startup replay, and
compaction. It uses Win32 64-bit file APIs and `FlushFileBuffers`.

The binary format is private but versioned. Invalid complete records are never
skipped; only an incomplete EOF record is truncated. Snapshot generation must
match the active log before snapshot state is trusted.