Skip to main content

LOCK_VERSION

Constant LOCK_VERSION 

Source
pub const LOCK_VERSION: u32 = 1;
Expand description

Current on-disk lockfile schema version. A mismatching version makes the lockfile “foreign” for the reader — read_and_clean_stale returns it as-is without removing the file. Writers still check PID ownership, so a foreign-version entry held by another PID is treated as a live foreign lock by acquire and refused.