summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/garbage_collector.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-04-12 17:49:34 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-04-15 17:36:56 +0200
commit0a2a440f0421134f1f741a74c88087a9951462bc (patch)
treec6fd5a88d4a808e4343f07a018f60ec239612508 /src/buildtool/storage/garbage_collector.cpp
parenta0b52e170866b00cd27e243ffd5599be91152395 (diff)
downloadjustbuild-0a2a440f0421134f1f741a74c88087a9951462bc.tar.gz
LargeBlobs: Skip splicing of dependent objects during uplinking of AC, TC and trees.
Diffstat (limited to 'src/buildtool/storage/garbage_collector.cpp')
-rw-r--r--src/buildtool/storage/garbage_collector.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/buildtool/storage/garbage_collector.cpp b/src/buildtool/storage/garbage_collector.cpp
index 232c8ab8..7c5f9db2 100644
--- a/src/buildtool/storage/garbage_collector.cpp
+++ b/src/buildtool/storage/garbage_collector.cpp
@@ -65,7 +65,11 @@ auto GarbageCollector::GlobalUplinkBlob(bazel_re::Digest const& digest,
// Note that we uplink with _skip_sync_ as we want to prefer hard links
// from older generations over copies from the companion file/exec CAS.
if (Storage::Generation(i).CAS().LocalUplinkBlob(
- latest_cas, digest, is_executable, /*skip_sync=*/true)) {
+ latest_cas,
+ digest,
+ is_executable,
+ /*skip_sync=*/true,
+ /*splice_result=*/true)) {
return true;
}
}
@@ -91,7 +95,8 @@ auto GarbageCollector::GlobalUplinkTree(bazel_re::Digest const& digest) noexcept
// Try to find tree in all generations.
auto const& latest_cas = Storage::Generation(0).CAS();
for (std::size_t i = 0; i < StorageConfig::NumGenerations(); ++i) {
- if (Storage::Generation(i).CAS().LocalUplinkTree(latest_cas, digest)) {
+ if (Storage::Generation(i).CAS().LocalUplinkTree(
+ latest_cas, digest, /*splice_result=*/true)) {
return true;
}
}