pub fn wal_size(wal_path: &Path) -> Result<u64, IncrementalCheckpointError>
Calculates the WAL size for checkpoint decisions.
Returns an error if the file cannot be read.