* Only invalidate paths when they are in fact valid.

This commit is contained in:
Eelco Dolstra 2005-01-28 11:05:46 +00:00
parent ac2f665853
commit 0ea8b6993a
1 changed files with 2 additions and 1 deletions

View File

@ -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);