diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-11-10T16·45+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-11-10T16·45+0100 |
commit | dd77f7d5931e500585b6539b52ef5a5f3b549a4e (patch) | |
tree | 8df85662ed52e49bb0669f5e5c86ef3105163d45 /src/libstore/store-api.hh | |
parent | 2af5d35fdc1171a9bdab7e2fc005673d76417c06 (diff) |
Store::computeFSClosure(): Support a set of paths
This way, callers can exploits the parallelism of computeFSClosure() when they have multiple paths that they need the (combined) closure of.
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index f6bbc9a84e18..2ea74d90e78e 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -477,15 +477,19 @@ public: ensurePath(). */ Derivation derivationFromPath(const Path & drvPath); - /* Place in `paths' the set of all store paths in the file system + /* Place in `out' the set of all store paths in the file system closure of `storePath'; that is, all paths than can be directly - or indirectly reached from it. `paths' is not cleared. If + or indirectly reached from it. `out' is not cleared. If `flipDirection' is true, the set of paths that can reach `storePath' is returned; that is, the closures under the `referrers' relation instead of the `references' relation is returned. */ + void computeFSClosure(const PathSet & paths, + PathSet & out, bool flipDirection = false, + bool includeOutputs = false, bool includeDerivers = false); + void computeFSClosure(const Path & path, - PathSet & paths, bool flipDirection = false, + PathSet & out, bool flipDirection = false, bool includeOutputs = false, bool includeDerivers = false); /* Given a set of paths that are to be built, return the set of |