mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 12:41:00 +01:00
added dbValidStatePaths, StatePaths are now also registered as valid and can be query'd on validity
This commit is contained in:
parent
51fad07fbd
commit
6351b7e728
8 changed files with 126 additions and 24 deletions
|
|
@ -40,7 +40,11 @@ public:
|
|||
/* Implementations of abstract store API methods. */
|
||||
|
||||
bool isValidPath(const Path & path);
|
||||
|
||||
|
||||
bool isValidStatePath(const Path & path);
|
||||
|
||||
bool isValidComponentOrStatePath(const Path & path);
|
||||
|
||||
Substitutes querySubstitutes(const Path & srcPath);
|
||||
|
||||
Hash queryPathHash(const Path & path);
|
||||
|
|
@ -115,13 +119,14 @@ void clearSubstitutes();
|
|||
of the file system contents of the path. The hash must be a
|
||||
SHA-256 hash. */
|
||||
void registerValidPath(const Transaction & txn,
|
||||
const Path & path, const Hash & hash,
|
||||
const Path & path, const Path & statepath, const Hash & hash,
|
||||
const PathSet & references, const PathSet & stateReferences,
|
||||
const Path & deriver);
|
||||
|
||||
struct ValidPathInfo
|
||||
{
|
||||
Path path;
|
||||
Path statePath;
|
||||
Path deriver;
|
||||
Hash hash;
|
||||
PathSet references;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue