diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-28 11:05:46 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-28 11:05:46 +0000 |
commit | 0ea8b6993a76a24afb1a1f38699d80193249fa71 (patch) | |
tree | acf432f5c2572fa5f99cdccd76cd292076aec1be /src | |
parent | ac2f665853331088b5b48f9edad609df9f79f78f (diff) |
* Only invalidate paths when they are in fact valid.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/store.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc index 14a3ff6cb..e676216c9 100644 --- a/src/libstore/store.cc +++ b/src/libstore/store.cc @@ -546,7 +546,8 @@ void deleteFromStore(const Path & _path) assertStorePath(path); Transaction txn(nixDB); - invalidatePath(path, txn); + if (isValidPathTxn(txn, path)) + invalidatePath(path, txn); txn.commit(); deletePath(path); |