mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Eval cache: fix cache regressions
- Fix eval cache not being persisted in `nix develop` (since #10570) - Don't attempt to commit cache transaction if there is no active transaction, which will spew errors in edge cases - Drive-by: trivial typo fix
This commit is contained in:
parent
0363dbf2b9
commit
e764ed31f6
3 changed files with 6 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ struct AttrDb
|
|||
{
|
||||
try {
|
||||
auto state(_state->lock());
|
||||
if (!failed)
|
||||
if (!failed && state->txn->active)
|
||||
state->txn->commit();
|
||||
state->txn.reset();
|
||||
} catch (...) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue