pub fn acquire(
conn: &Connection,
install: &str,
now_ms: i64,
lease_ms: i64,
) -> Result<Lock>Expand description
Takes the lock for install if it is free, expired or already its own. One statement decides, so two installs
asking at once cannot both get it.