diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-11 23:44:02 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-11 23:44:02 +0000 |
commit | 18834f77643f5bd1071e1735f23f925d87cce6e5 (patch) | |
tree | 897af2519074fa5cfd4ef686c7d1ec63bb201f67 | |
parent | 2de201254e8669a6768bb739ff27fd94a87a71b9 (diff) |
Recheck path validity after acquiring lock
It might have changed, and in any event this is how the cod used to work
so let's just keep it.
-rw-r--r-- | src/libstore/build.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index c8107c7e8..49042649e 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1547,6 +1547,7 @@ void DerivationGoal::tryToBuild() omitted, but that would be less efficient.) Note that since we now hold the locks on the output paths, no other process can build this derivation, so no further checks are necessary. */ + checkPathValidity(); bool allValid = true; for (auto & [_, status] : initialOutputs) { if (!status.wanted) continue; |