mirror of
https://github.com/NixOS/nix.git
synced 2025-12-10 11:01:03 +01:00
* Reverse mappings for the successor and substitute mappings.
This commit is contained in:
parent
1eb4da156c
commit
d3d5e77810
6 changed files with 68 additions and 27 deletions
10
src/store.hh
10
src/store.hh
|
|
@ -12,6 +12,16 @@ using namespace std;
|
|||
/* Copy a path recursively. */
|
||||
void copyPath(const Path & src, const Path & dst);
|
||||
|
||||
/* Register a successor. This function accepts a transaction handle
|
||||
so that it can be enclosed in an atomic operation with calls to
|
||||
registerValidPath(). This must be atomic, since if we register a
|
||||
successor for a derivation without registering the paths built in
|
||||
the derivation, we have a successor with dangling pointers, and if
|
||||
we do it in reverse order, we can get an obstructed build (since to
|
||||
rebuild the successor, the outputs paths must not exist). */
|
||||
void registerSuccessor(const Transaction & txn,
|
||||
const Path & path1, const Path & path2);
|
||||
|
||||
/* Register a substitute. */
|
||||
void registerSubstitute(const Path & srcPath, const Path & subPath);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue