H.Storage.File.Wal (H v0.3.0)

Copy Markdown View Source

CRC32-framed binary write-ahead log (commit.log) encoding, appending, replay, and torn-tail recovery for H.Storage.File.

Summary

Functions

append_frame(fd, sync, next_id, accepted_batches)

encode_frame(next_id, accepted_batches)

replay(fd, state, snapshot_seq, sync)

replay_read_only(fd, state, snapshot_seq)

sync_fd(fd, atom)