From 1077bc626e8dfc153524da40eddad46ef893d66e Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Tue, 11 Feb 2025 01:06:15 +0100 Subject: [PATCH] libstore: use lockPathAsync in more places these were found by an upcoming lint. Change-Id: I4647baa2c0971f3007d348e8ced6f75e45037a20 --- lix/libstore/local-store.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lix/libstore/local-store.cc b/lix/libstore/local-store.cc index 66be6dc99..a4f4de062 100644 --- a/lix/libstore/local-store.cc +++ b/lix/libstore/local-store.cc @@ -1226,7 +1226,7 @@ try { from a build hook (whose parent process already acquired a lock on this path). */ if (!locksHeld.count(printStorePath(info.path))) - outputLock = lockPath(realPath); + outputLock = TRY_AWAIT(lockPathAsync(realPath)); if (repair || !isValidPath(info.path)) { @@ -1375,7 +1375,7 @@ try { auto realPath = Store::toRealPath(dstPath); - PathLock outputLock = lockPath(realPath); + PathLock outputLock = TRY_AWAIT(lockPathAsync(realPath)); if (repair || !isValidPath(dstPath)) { @@ -1442,7 +1442,7 @@ try { auto realPath = Store::toRealPath(dstPath); - PathLock outputLock = lockPath(realPath); + PathLock outputLock = TRY_AWAIT(lockPathAsync(realPath)); if (repair || !isValidPath(dstPath)) {