about summary refs log tree commit diff
path: root/src/libstore/normalise.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-21T16·05+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-21T16·05+0000
commit7a02d954186d6ba1ea41d9917d63f9fab84736b3 (patch)
tree09b42785f1b34f1d6cbe2781e721b9ddd697639a /src/libstore/normalise.cc
parent06208d1d8677eaea1fb56dd09832f43154bbab5d (diff)
* Remove lock files after building.
Diffstat (limited to 'src/libstore/normalise.cc')
-rw-r--r--src/libstore/normalise.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/normalise.cc b/src/libstore/normalise.cc
index c531e6784bcb..db85c3b5b879 100644
--- a/src/libstore/normalise.cc
+++ b/src/libstore/normalise.cc
@@ -256,6 +256,11 @@ Path normaliseStoreExpr(const Path & _nePath, PathSet pending)
     registerSuccessor(txn, nePath, nfPath);
     txn.commit();
 
+    /* It is now safe to delete the lock files, since all future
+       lockers will see the successor; they will not create new lock
+       files with the same names as the old (unlinked) lock files. */
+    outputLocks.setDeletion(true);
+
     return nfPath;
 }