MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / segment_path

Function segment_path

nodedb-wal/src/segment/meta.rs:57–59  ·  view source on GitHub ↗

Build a full segment path within a WAL directory.

(wal_dir: &Path, first_lsn: u64)

Source from the content-addressed store, hash-verified

55
56/// Build a full segment path within a WAL directory.
57pub fn segment_path(wal_dir: &Path, first_lsn: u64) -> PathBuf {
58 wal_dir.join(segment_filename(first_lsn))
59}
60
61/// Parse the first_lsn from a segment filename.
62///

Callers 2

openMethod · 0.50
roll_segmentMethod · 0.50

Calls 2

segment_filenameFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected