Ludovic Courtès 1ae0e1dc29
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.
2022-05-30 16:34:39 +02:00
..
2022-05-22 01:07:51 +02:00
2022-05-12 12:45:49 -04:00
2022-05-01 21:30:34 +02:00
2022-02-14 11:23:07 +01:00
2022-03-18 16:03:33 +01:00
2021-04-12 18:42:22 +02:00
2021-08-12 12:34:13 +02:00
2021-05-11 12:49:53 +02:00
2022-02-14 11:23:07 +01:00