diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-11 23:40:49 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-14 13:56:36 +0000 |
commit | 592851fb67cd15807109d6f65fb81f6af89af966 (patch) | |
tree | 500c2246b6ae93bfe589fa45ded1f2788c8c7f8e /src/libstore/local-store.hh | |
parent | 9de96ef7d409fedea092045c4dbae7177f88962a (diff) |
LocalStore::addToStoreFromDump copy in chunks
Rather than copying byte-by-byte, we let the coroutine know how much
data we would like it to send back to us.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 215731f87..ae23004c4 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -292,7 +292,7 @@ private: StorePath addToStoreCommon( const string & name, FileIngestionMethod method, HashType hashAlgo, RepairFlag repair, - std::function<void(Sink &)> demux); + std::function<void(Sink &, size_t &)> demux); Path getRealStoreDir() override { return realStoreDir; } |