Status: IN
WAL file size management avoids filesystem syscall overhead through tell()-based tracking with soft-limit semantics: the hot path uses fd.tell() instead of os.path.getsize() to avoid stat calls and TOCTOU races, the size limit is a soft cap checked before the next write rather than mid-write, and files at exactly the limit trigger rotation to prevent unbounded growth while allowing single-record overshoot.
Three beliefs establish a consistent file-size management strategy optimized for write throughput that trades exact size enforcement for reduced syscall overhead.
Depends on (SL): wal-hot-path-avoids-getsize, wal-max-file-size-is-soft-limit, wal-exactly-at-limit-rotates