summary refs log tree commit diff
path: root/bootstrap
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-05-30 15:58:05 +0200
committerLudovic Courtès <ludo@gnu.org>2022-05-30 16:34:39 +0200
commit1ae0e1dc29109cef20dbe9d26eb1c855694716b5 (patch)
treeaccccbabb0b2996eaa50233939ddbdb1a39972d3 /bootstrap
parent281bf7274529ae47f007a2b1eceacb5f25d12c0d (diff)
downloadguix-1ae0e1dc29109cef20dbe9d26eb1c855694716b5.tar.gz
store: 'map/accumulate-builds' preserves caches.
Fixes <https://issues.guix.gnu.org/55721>.

Starting from the switch to functional object caches ca.
9e5812ac59b01ff011ec0c5b0f437dfe85d6fcc7, we would be losing accumulated
caches when aborting to the build handler.  This patch fixes that.

In particular, by preserving '%reference-cache-id', we avoid redundant
'query-references' RPCs, which accounted for a large part of the extra
processing time.

* guix/store.scm (build-accumulator): When returning an <unresolved>
node, call 'set-store-connection-caches!' before and after to preserve
caches.
(map/accumulate-builds): Pass STORE as the first argument to
the <unresolved> continuation.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions