diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 08:01:03 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 08:01:03 +0100 |
commit | 64b077cdaa325d7ae3bd7fe5f84e1247f1298a4d (patch) | |
tree | bc7e8cfa18e0b12f9fbaf4f9899d9889bfcc311c /src | |
parent | e310bbf913ba068e1669c57de255cb811422fe8b (diff) |
Merge pull request #9763 from L-as/avoid-unnecessary-copy
Avoid unnecessary copy of goal log
(cherry picked from commit 268c49264ae2657c602f84f9bff3eb31306253ea)
Change-Id: I5d9de9e43a7ddcb09d25bbc7367c9d83f58c7a75
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/build/worker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/worker.cc b/src/libstore/build/worker.cc index 99004fba5..850df5f1e 100644 --- a/src/libstore/build/worker.cc +++ b/src/libstore/build/worker.cc @@ -448,7 +448,7 @@ void Worker::waitForInput() } else { printMsg(lvlVomit, "%1%: read %2% bytes", goal->getName(), rd); - std::string data((char *) buffer.data(), rd); + std::string_view data((char *) buffer.data(), rd); j->lastOutput = after; goal->handleChildOutput(k, data); } |