MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / open_root_lock_file

Function open_root_lock_file

src/pglite/base.rs:364–372  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

362}
363
364fn open_root_lock_file(path: &Path) -> std::io::Result<File> {
365 let mut options = OpenOptions::new();
366 options.read(true).write(true).create(true).truncate(false);
367 #[cfg(windows)]
368 {
369 options.share_mode(0);
370 }
371 options.open(path)
372}
373
374fn release_root_lock_path(path: &Path) {
375 if let Some(locked) = ROOT_LOCKED_PATHS.get() {

Callers 1

acquireMethod · 0.85

Calls 3

writeMethod · 0.80
readMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected