From 2ba35d10b4e410dec28dcb3bec6989ec6ffe367d Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 2 Sep 2022 13:35:15 +0200 Subject: clarifying comment --- zenutil/include/zenutil/cache/cacherequests.h | 7 ++++--- 1 file 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 Policy; -- cgit v1.2.3