libstore: use lockPathAsync in more places
these were found by an upcoming lint. Change-Id: I4647baa2c0971f3007d348e8ced6f75e45037a20
This commit is contained in:
@@ -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)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user