forked from lix-project/hydra
Merge pull request #1124 from obsidiansystems/simplify--closure-of-path-set
simplify, `computeFSClosure` can take a set now
This commit is contained in:
commit
3a4ea6e563
|
@ -86,8 +86,7 @@ static void copyClosureTo(std::timed_mutex & sendMutex, ref<Store> destStore,
|
||||||
bool useSubstitutes = false)
|
bool useSubstitutes = false)
|
||||||
{
|
{
|
||||||
StorePathSet closure;
|
StorePathSet closure;
|
||||||
for (auto & path : paths)
|
destStore->computeFSClosure(paths, closure);
|
||||||
destStore->computeFSClosure(path, closure);
|
|
||||||
|
|
||||||
/* Send the "query valid paths" command with the "lock" option
|
/* Send the "query valid paths" command with the "lock" option
|
||||||
enabled. This prevents a race where the remote host
|
enabled. This prevents a race where the remote host
|
||||||
|
|
Loading…
Reference in a new issue