diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-13 17:30:42 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-13 17:30:42 +0200 |
commit | 0a9da00a10fa27a3e3b98439cb0a7d5e79135b58 (patch) | |
tree | 34057b575b3a5e5d6c556bff73e6dc5960229aee /src/libstore/export-import.cc | |
parent | fc84c358d9e55e9ba1d939d8974f6deef629848e (diff) |
NarAccessor: Run in constant memory
Diffstat (limited to 'src/libstore/export-import.cc')
-rw-r--r-- | src/libstore/export-import.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/export-import.cc b/src/libstore/export-import.cc index cfed8ccd8..ae31cbcb0 100644 --- a/src/libstore/export-import.cc +++ b/src/libstore/export-import.cc @@ -77,15 +77,15 @@ StorePaths Store::importPaths(Source & source, std::shared_ptr<FSAccessor> acces if (deriver != "") info.deriver = parseStorePath(deriver); - info.narHash = hashString(htSHA256, *tee.source.data); - info.narSize = tee.source.data->size(); + info.narHash = hashString(htSHA256, *tee.saved.s); + info.narSize = tee.saved.s->size(); // Ignore optional legacy signature. if (readInt(source) == 1) readString(source); // Can't use underlying source, which would have been exhausted - auto source = StringSource { *tee.source.data }; + auto source = StringSource { *tee.saved.s }; addToStore(info, source, NoRepair, checkSigs, accessor); res.push_back(info.path); |