* In normaliseFState(), wrap registration of the output paths and the
normal form in a single transaction to ensure that if we crash, either everything is registered or nothing is. This is for recoverability: unregistered paths in the store can be deleted arbitrarily, while registered paths can only be deleted by running the garbage collector.
Showing
- src/fstate.cc 4 additions, 1 deletionsrc/fstate.cc
- src/nix.cc 4 additions, 2 deletionssrc/nix.cc
- src/normalise.cc 23 additions, 16 deletionssrc/normalise.cc
- src/normalise.hh 2 additions, 1 deletionsrc/normalise.hh
- src/store.cc 8 additions, 7 deletionssrc/store.cc
- src/store.hh 3 additions, 1 deletionsrc/store.hh
Loading
Please register or sign in to comment