about summary refs log tree commit diff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-09-26T19·19+0200
committerEelco Dolstra <edolstra@gmail.com>2018-09-26T19·19+0200
commited78582847d3932763ad9b7b239f843306fa6fe9 (patch)
treee18903eae4c59ab24d59cea8c1e09ef8248563b4 /src/libstore/store-api.cc
parent44e86304b611a955f4e934fc160f3f4a0a2b1c92 (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