wal-seq-nums-strictly-monotonic

Status: IN

Sequence numbers increment under a threading.Lock and are never reused; on recovery, all WAL files are scanned to find the high-water mark so new records continue the sequence.

Source: entries/2026/05/28/write-ahead-log-wal.md

Example

with self._lock:
    self._seq_num += 1
    seq = self._seq_num

JSON