about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-01-28T11·05+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-01-28T11·05+0000
commit0ea8b6993a76a24afb1a1f38699d80193249fa71 (patch)
treeacf432f5c2572fa5f99cdccd76cd292076aec1be
parentac2f665853331088b5b48f9edad609df9f79f78f (diff)
* Only invalidate paths when they are in fact valid.
-rw-r--r--src/libstore/store.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc
index 14a3ff6cba46..e676216c9fb4 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);