pub fn segment_path(wal_dir: &Path, first_lsn: u64) -> PathBuf
Build a full segment path within a WAL directory.