aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-03-22 23:00:54 +0100
committerGitHub Enterprise <[email protected]>2024-03-22 23:00:54 +0100
commit5e02fc9fa0a2480e608a72489baef5831b099460 (patch)
tree8004ef01ef36c61aeb1223a499e14808469113e7 /src/zenutil/include
parent5.4.2-pre7 (diff)
downloadzen-5e02fc9fa0a2480e608a72489baef5831b099460.tar.xz
zen-5e02fc9fa0a2480e608a72489baef5831b099460.zip
re-enable partial cache chunks (#21)v5.4.2-pre9v5.4.2-pre12v5.4.2-pre11v5.4.2-pre10
* Separate chunk raw hash from section hash (how to find the fragment attachment) * fix partial get cache value tests
Diffstat (limited to 'src/zenutil/include')
-rw-r--r--src/zenutil/include/zenutil/cache/cacherequests.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/zenutil/include/zenutil/cache/cacherequests.h b/src/zenutil/include/zenutil/cache/cacherequests.h
index 0913efc65..fbf3e08cc 100644
--- a/src/zenutil/include/zenutil/cache/cacherequests.h
+++ b/src/zenutil/include/zenutil/cache/cacherequests.h
@@ -195,10 +195,11 @@ namespace cacherequests {
struct CacheValueResult
{
- uint64_t RawSize = 0;
- uint64_t RawOffset = 0;
- IoHash RawHash = IoHash::Zero;
- CompressedBuffer Body = CompressedBuffer::Null;
+ uint64_t RawSize = 0;
+ uint64_t FragmentOffset = 0;
+ IoHash FragmentHash = IoHash::Zero;
+ IoHash RawHash = IoHash::Zero;
+ CompressedBuffer Body = CompressedBuffer::Null;
};
struct CacheValuesResult