libstore: use lockPathAsync in more places

these were found by an upcoming lint.

Change-Id: I4647baa2c0971f3007d348e8ced6f75e45037a20
This commit is contained in:
eldritch horrors
2025-02-14 15:28:50 +00:00
parent 65ee7f5da4
commit 1077bc626e
+3 -3
View File
@@ -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)) {