diff options
| author | mattpetersepic <[email protected]> | 2022-01-27 10:52:07 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-27 10:52:07 -0700 |
| commit | fb1afc87a436ff6374daeaef5f7682f098a85cd7 (patch) | |
| tree | 89810fc5d85ab81cce7fdc4e26849ad0d25cf2d1 /zenutil/include | |
| parent | Add batched CacheRecord put rpc (#38) (diff) | |
| download | zen-fb1afc87a436ff6374daeaef5f7682f098a85cd7.tar.xz zen-fb1afc87a436ff6374daeaef5f7682f098a85cd7.zip | |
Rename Paylod to Value to match the client side. Rename PayloadId to ValueContentId where its a hash instead of an oid.
Diffstat (limited to 'zenutil/include')
| -rw-r--r-- | zenutil/include/zenutil/cache/cachekey.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenutil/include/zenutil/cache/cachekey.h b/zenutil/include/zenutil/cache/cachekey.h index fb36c7759..a0a83a883 100644 --- a/zenutil/include/zenutil/cache/cachekey.h +++ b/zenutil/include/zenutil/cache/cachekey.h @@ -44,7 +44,7 @@ struct CacheChunkRequest { CacheKey Key; IoHash ChunkId; - Oid PayloadId; + Oid ValueId; uint64_t RawOffset = 0ull; uint64_t RawSize = ~uint64_t(0); CachePolicy Policy = CachePolicy::Default; @@ -69,11 +69,11 @@ operator<(const CacheChunkRequest& A, const CacheChunkRequest& B) { return false; } - if (A.PayloadId < B.PayloadId) + if (A.ValueId < B.ValueId) { return true; } - if (B.PayloadId < A.PayloadId) + if (B.ValueId < A.ValueId) { return false; } |