1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Merge pull request #11086 from kognise/eval-cache-fixes

Eval cache: fix cache regressions
This commit is contained in:
Robert Hensing 2024-07-18 14:57:07 +02:00 committed by GitHub
commit 8ce4287409
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 26 additions and 8 deletions

View file

@ -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 (...) {