Skip to main content

load_session_in_dir

Function load_session_in_dir 

Source
pub fn load_session_in_dir(dir: &Path, id: &str) -> Result<Session, Error>
Expand description

Load <id>.json and, when a journal exists, replay it idempotently. Old-format sessions (no journal) load exactly as before; a session with a torn or stale journal recovers to its last consistent state. Both reads are confined nofollow bounded handle reads (fix1 I1).