1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 11:43:15 +02:00

Add comment

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
(cherry picked from commit 2669e4ac4f)
This commit is contained in:
Eelco Dolstra 2025-01-20 14:57:56 +01:00 committed by Mergify
parent b4418c5c1d
commit ff91a777a6

View file

@ -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();