diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-08-01T15·41+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-08-01T15·41+0000 |
commit | c95b4ad2906ce4076f04e0969b7080c0589a8cea (patch) | |
tree | ce3d6690834645117d2d6dfa714161fe97e09ca6 /src/normalise.hh | |
parent | d99d04e6442dcc39a24cebac01af117ce00a5006 (diff) |
* 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.
Diffstat (limited to 'src/normalise.hh')
-rw-r--r-- | src/normalise.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normalise.hh b/src/normalise.hh index 98f58783e5b8..59ab325739e4 100644 --- a/src/normalise.hh +++ b/src/normalise.hh @@ -29,7 +29,8 @@ Strings fstateRequisites(const FSId & id, FSIds findGenerators(const FSIds & ids); /* Register a successor. */ -void registerSuccessor(const FSId & id1, const FSId & id2); +void registerSuccessor(const Transaction & txn, + const FSId & id1, const FSId & id2); #endif /* !__NORMALISE_H */ |