aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-15 22:09:06 +0200
committerStefan Boberg <[email protected]>2023-05-15 22:09:06 +0200
commit193d3292e3c6cbcecc6ec70f54239e225d540d43 (patch)
treea27721327e358ab0250b35aae25d378e994c4096 /src/zenserver/cache/structuredcachestore.cpp
parentadded error reporting for bad BlockStore chunks (diff)
downloadzen-193d3292e3c6cbcecc6ec70f54239e225d540d43.tar.xz
zen-193d3292e3c6cbcecc6ec70f54239e225d540d43.zip
removed remnants of ZEN_USE_REF_TRACKING
this code was originally meant to be used for GC but is no longer needed
Diffstat (limited to 'src/zenserver/cache/structuredcachestore.cpp')
-rw-r--r--src/zenserver/cache/structuredcachestore.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/zenserver/cache/structuredcachestore.cpp b/src/zenserver/cache/structuredcachestore.cpp
index e07a597e3..d56b3cfe2 100644
--- a/src/zenserver/cache/structuredcachestore.cpp
+++ b/src/zenserver/cache/structuredcachestore.cpp
@@ -240,25 +240,6 @@ ZenCacheNamespace::Put(std::string_view InBucket, const IoHash& HashKey, const Z
m_DiskLayer.Put(InBucket, HashKey, Value);
-#if ZEN_USE_REF_TRACKING
- if (Value.Value.GetContentType() == ZenContentType::kCbObject)
- {
- if (ValidateCompactBinary(Value.Value, CbValidateMode::All) == CbValidateError::None)
- {
- CbObject Object{SharedBuffer(Value.Value)};
-
- uint8_t TempBuffer[8 * sizeof(IoHash)];
- std::pmr::monotonic_buffer_resource Linear{TempBuffer, sizeof TempBuffer};
- std::pmr::polymorphic_allocator Allocator{&Linear};
- std::pmr::vector<IoHash> CidReferences{Allocator};
-
- Object.IterateAttachments([&](CbFieldView Field) { CidReferences.push_back(Field.AsAttachment()); });
-
- m_Gc.OnNewCidReferences(CidReferences);
- }
- }
-#endif
-
if (Value.Value.Size() <= m_DiskLayerSizeThreshold)
{
m_MemLayer.Put(InBucket, HashKey, Value);