Searched refs:lock_path (Results 1 – 2 of 2) sorted by relevance
298 let lock_path = if let Some(p) = acquire_task_fs_lock( in handle_on_cache_get() localVariable335 fs::write(&lock_path, &recompressed_cache_bytes), in handle_on_cache_get()338 lock_path in handle_on_cache_get()342 fs::rename(&lock_path, &path), in handle_on_cache_get()344 if let Err(error) = fs::remove_file(&lock_path) { in handle_on_cache_get()347 lock_path.display(), in handle_on_cache_get()355 lock_path in handle_on_cache_get()837 let lock_path = task_path.with_extension(format!("wip-{}", std::process::id())); in acquire_task_fs_lock() localVariable841 .open(&lock_path) in acquire_task_fs_lock()845 lock_path.display(), in acquire_task_fs_lock()[all …]
333 let lock_path = path.with_extension(format!("wip-atomic-write-{reason}")); in fs_write_atomic() localVariable337 .open(&lock_path) in fs_write_atomic()340 .and_then(|()| fs::rename(&lock_path, &path)) // atomic file rename in fs_write_atomic()