aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-03-12 10:51:57 +0100
committerGitHub Enterprise <[email protected]>2025-03-12 10:51:57 +0100
commitfb09d861fd76e459ac86bec388bd406aaca8e681 (patch)
tree2710efa3a2492cf12886f447163fd8b4a939c196 /src/zenutil/include
parentasync find blocks (#300) (diff)
downloadzen-fb09d861fd76e459ac86bec388bd406aaca8e681.tar.xz
zen-fb09d861fd76e459ac86bec388bd406aaca8e681.zip
improved block gen logic (#302)
- Improvement: Reduced memory usage during upload and part upload validation - Improvement: Reduced I/O usage during upload and download - Improvement: Faster block regeneration when uploading in response to PutBuild/FinalizeBuild - Improvement: More trace scopes for build upload operations - Bugfix: Fixed crash during download when trying to write outside a file range
Diffstat (limited to 'src/zenutil/include')
-rw-r--r--src/zenutil/include/zenutil/chunkedcontent.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenutil/include/zenutil/chunkedcontent.h b/src/zenutil/include/zenutil/chunkedcontent.h
index 309341550..57b55cb8e 100644
--- a/src/zenutil/include/zenutil/chunkedcontent.h
+++ b/src/zenutil/include/zenutil/chunkedcontent.h
@@ -124,8 +124,8 @@ struct ChunkedContentLookup
{
struct ChunkSequenceLocation
{
- uint32_t SequenceIndex;
- uint64_t Offset;
+ uint32_t SequenceIndex = (uint32_t)-1;
+ uint64_t Offset = (uint64_t)-1;
};
tsl::robin_map<IoHash, uint32_t, IoHash::Hasher> ChunkHashToChunkIndex;
tsl::robin_map<IoHash, uint32_t, IoHash::Hasher> RawHashToSequenceIndex;