From 0ea8b6993a76a24afb1a1f38699d80193249fa71 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 28 Jan 2005 11:05:46 +0000 Subject: [PATCH] * Only invalidate paths when they are in fact valid. --- src/libstore/store.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);