mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Add comment
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
cc838e8181
commit
2669e4ac4f
1 changed files with 1 additions and 0 deletions
|
@ -541,6 +541,7 @@ void RemoteStore::addMultipleToStore(
|
|||
{
|
||||
auto source = sinkToSource([&](Sink & sink) {
|
||||
sink << pathsToCopy.size();
|
||||
// Reverse, so we can release memory at the original start
|
||||
std::reverse(pathsToCopy.begin(), pathsToCopy.end());
|
||||
while (!pathsToCopy.empty()) {
|
||||
auto & [pathInfo, pathSource] = pathsToCopy.back();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue