Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Hensing <[email protected]>
(cherry picked from commit 2669e4a)
  • Loading branch information
edolstra authored and mergify[bot] committed Jan 20, 2025
1 parent b4418c5 commit ff91a77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libstore/remote-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ff91a77

Please sign in to comment.