def table.canonical.lock

mylsm-lsm-store@0.6.0.1 · src/transfer/MigrateIo.bend:446

import mylsm-lsm-store@0.6.0.1/src/transfer/MigrateIo.bend as MigrateIo
import Base
import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs

446def table.canonical.lock(
447  paths: String & String
448) -> IO(Result<&1, &1, Error, Nat & Nat>):
449  match paths:
450    case (exists_path, retained_path):
451      do IO<Result<&1, &1, Error, Nat & Nat>>:
452        present : Result<&1, &1, U32 & String, Bool> <-
453          Fs.exists(exists_path ++ "/LOCK")
454        table.lock.present(retained_path, present)

Uses (13)

Used by (1)