1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-27 04:30:59 +01:00

Document addCAToStore/addToStoreFromDump source drainage

Also checked that all usages satisfy the requirement and
removed dead code.
This commit is contained in:
Robert Hensing 2020-09-18 11:58:45 +02:00
parent fa08db5c4c
commit ca30abb3fb
3 changed files with 4 additions and 9 deletions

View file

@ -63,8 +63,10 @@ public:
void querySubstitutablePathInfos(const StorePathCAMap & paths,
SubstitutablePathInfos & infos) override;
/* Add a content-addressable store path. `dump` will be drained. */
ref<const ValidPathInfo> addCAToStore(Source & dump, const string & name, ContentAddressMethod caMethod, StorePathSet references, RepairFlag repair);
/* Add a content-addressable store path. Does not support references. `dump` will be drained. */
StorePath addToStoreFromDump(Source & dump, const string & name,
FileIngestionMethod method = FileIngestionMethod::Recursive, HashType hashAlgo = htSHA256, RepairFlag repair = NoRepair) override;