aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-09-02 13:35:15 +0200
committerDan Engelbrecht <[email protected]>2022-09-06 08:54:02 +0200
commit2ba35d10b4e410dec28dcb3bec6989ec6ffe367d (patch)
treec8a3a2373ed9c7f7c42ffd4a1196d5fde4bf0809
parentUse cacherequests structs when handing GetCacheRecords (diff)
downloadarchived-zen-2ba35d10b4e410dec28dcb3bec6989ec6ffe367d.tar.xz
archived-zen-2ba35d10b4e410dec28dcb3bec6989ec6ffe367d.zip
clarifying comment
-rw-r--r--zenutil/include/zenutil/cache/cacherequests.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/zenutil/include/zenutil/cache/cacherequests.h b/zenutil/include/zenutil/cache/cacherequests.h
index 4566eba38..0dac8c932 100644
--- a/zenutil/include/zenutil/cache/cacherequests.h
+++ b/zenutil/include/zenutil/cache/cacherequests.h
@@ -207,9 +207,10 @@ namespace cacherequests {
struct GetCacheChunkRequest
{
- CacheKey Key;
- Oid ValueId = Oid::Zero; // Set if ChunkId is not known at request time
- IoHash ChunkId = IoHash::Zero;
+ CacheKey Key; // Leave ValueId and ChunkId (RawHash) Zero to get the cache value
+ Oid ValueId = Oid::Zero; // Set to get a record value if ChunkId is not known at request time, this requires a fetch of the cache
+ // record to fulfill
+ IoHash ChunkId = IoHash::Zero; // Set to get a record value directly without fetching cache record
uint64_t RawOffset = 0ull;
uint64_t RawSize = ~uint64_t(0);
std::optional<CachePolicy> Policy;