diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-09-26T19·19+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-09-26T19·19+0200 |
commit | ed78582847d3932763ad9b7b239f843306fa6fe9 (patch) | |
tree | e18903eae4c59ab24d59cea8c1e09ef8248563b4 /src/libstore/store-api.cc | |
parent | 44e86304b611a955f4e934fc160f3f4a0a2b1c92 (diff) |
sinkToSource(): Start the coroutine lazily
In particular this causes copyStorePath() from HttpBinaryCacheStore to only start a download if needed. E.g. if the destination LocalStore goes to sleep waiting for the path lock and another process creates the path, then LocalStore::addToStore() will never read from the source so we don't have to do the download.
Diffstat (limited to 'src/libstore/store-api.cc')
0 files changed, 0 insertions, 0 deletions