aboutsummaryrefslogtreecommitdiff
path: root/src/zenremotestore/builds/buildstorageoperations.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-11-10 20:25:31 +0100
committerGitHub Enterprise <[email protected]>2025-11-10 20:25:31 +0100
commita82cceca2fd9e63d18b7e2485207bfe6e4c867cd (patch)
treee60dcc0921d2cbf65b1dee6db08a0bddc5c81b58 /src/zenremotestore/builds/buildstorageoperations.cpp
parentfix parsing of assume http2 from server discovery (#643) (diff)
downloadzen-a82cceca2fd9e63d18b7e2485207bfe6e4c867cd.tar.xz
zen-a82cceca2fd9e63d18b7e2485207bfe6e4c867cd.zip
add `--boost-worker-memory` option to zen builds (#639)
Diffstat (limited to 'src/zenremotestore/builds/buildstorageoperations.cpp')
-rw-r--r--src/zenremotestore/builds/buildstorageoperations.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zenremotestore/builds/buildstorageoperations.cpp b/src/zenremotestore/builds/buildstorageoperations.cpp
index fb1b3018a..ca54d2ce7 100644
--- a/src/zenremotestore/builds/buildstorageoperations.cpp
+++ b/src/zenremotestore/builds/buildstorageoperations.cpp
@@ -1812,7 +1812,7 @@ BuildsOperationUpdateFolder::Execute(FolderContent& OutLocalFolderState)
}
}
- if (BlockChunkPath.empty() && (BlockSize > 512u * 1024u))
+ if (BlockChunkPath.empty() && (BlockSize > m_Options.MaximumInMemoryPayloadSize))
{
ZEN_TRACE_CPU("WriteTempFullBlock");
// Could not be moved and rather large, lets store it on disk
@@ -3707,7 +3707,7 @@ BuildsOperationUpdateFolder::DownloadPartialBlock(
}
}
- if (BlockChunkPath.empty() && (BlockSize > 512u * 1024u))
+ if (BlockChunkPath.empty() && (BlockSize > m_Options.MaximumInMemoryPayloadSize))
{
ZEN_TRACE_CPU("WriteTempPartialBlock");
// Could not be moved and rather large, lets store it on disk
@@ -3847,7 +3847,7 @@ BuildsOperationUpdateFolder::WriteLocalChunkToCache(CloneQueryInterface* C
break;
}
const uint64_t NextChunkLength = m_RemoteContent.ChunkedContent.ChunkRawSizes[NextOp.ChunkIndex];
- if (ReadLength + NextChunkLength > 512u * 1024u)
+ if (ReadLength + NextChunkLength > m_Options.MaximumInMemoryPayloadSize)
{
break;
}
@@ -4438,7 +4438,7 @@ BuildsOperationUpdateFolder::AsyncWriteDownloadedChunk(const std::filesystem::pa
}
}
- if (CompressedChunkPath.empty() && (Size > 512u * 1024u))
+ if (CompressedChunkPath.empty() && (Size > m_Options.MaximumInMemoryPayloadSize))
{
ZEN_TRACE_CPU("WriteTempChunk");
// Could not be moved and rather large, lets store it on disk