aboutsummaryrefslogtreecommitdiff
path: root/zenutil/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-09-22 00:51:23 +0200
committerDan Engelbrecht <[email protected]>2022-09-22 10:52:15 +0200
commit75d1e777af58922bbba00ebbdc05bdc0fd768b9f (patch)
treeecbdc366194193e19caf8387b54dcdeaa8ce0e57 /zenutil/include
parentAdd elapsed seconds per individual request from upstream (#167) (diff)
downloadzen-de/auto-batch-upstream.tar.xz
zen-de/auto-batch-upstream.zip
Diffstat (limited to 'zenutil/include')
-rw-r--r--zenutil/include/zenutil/cache/cacherequests.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/zenutil/include/zenutil/cache/cacherequests.h b/zenutil/include/zenutil/cache/cacherequests.h
index ffb0f8d5f..4566eba38 100644
--- a/zenutil/include/zenutil/cache/cacherequests.h
+++ b/zenutil/include/zenutil/cache/cacherequests.h
@@ -245,21 +245,21 @@ namespace cacherequests {
//////////////////////////////////////////////////////////////////////////
- // struct CacheRecordValue
- // {
- // Oid Id = Oid::Zero;
- // IoHash RawHash = IoHash::Zero;
- // uint64_t RawSize = 0;
- // };
- //
- // struct CacheRecord
- // {
- // CacheKey Key = CacheKey::Empty;
- // std::vector<CacheRecordValue> Values;
- //
- // bool Parse(CbObjectView& Reader);
- // bool Format(CbObjectWriter& Writer) const;
- // };
+ struct CacheRecordValue
+ {
+ Oid Id = Oid::Zero;
+ IoHash RawHash = IoHash::Zero;
+ uint64_t RawSize = 0;
+ };
+
+ struct CacheRecord
+ {
+ CacheKey Key = CacheKey::Empty;
+ std::vector<CacheRecordValue> Values;
+
+ bool Parse(const CbObjectView& Reader);
+ bool Format(CbObjectWriter& Writer) const;
+ };
} // namespace cacherequests