mirror of
https://github.com/NixOS/nix.git
synced 2025-02-16 17:02:28 +00:00
* Only invalidate paths when they are in fact valid.
This commit is contained in:
parent
ac2f665853
commit
0ea8b6993a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user