aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-23 13:48:34 +0200
committerStefan Boberg <[email protected]>2021-09-23 13:48:34 +0200
commitaf88b1a47dfeae66a0b2faa1623ff6c59d435e22 (patch)
tree0b0814886697589bf0c55ef85cd61e95bbce753e /zenserver/cache/structuredcachestore.h
parentAdded HashBuffer(IoBuffer&) overload with trivial (but inappropriate for the ... (diff)
downloadzen-af88b1a47dfeae66a0b2faa1623ff6c59d435e22.tar.xz
zen-af88b1a47dfeae66a0b2faa1623ff6c59d435e22.zip
Added scrubbing logic to ZenCacheDiskLayer/ZenCacheMemoryLayer
This currently only goes through the motions of hashing the data to verify it, but does not perform recovery nor does it validate referential integrity
Diffstat (limited to 'zenserver/cache/structuredcachestore.h')
-rw-r--r--zenserver/cache/structuredcachestore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h
index 2cc3abb53..f96757409 100644
--- a/zenserver/cache/structuredcachestore.h
+++ b/zenserver/cache/structuredcachestore.h
@@ -65,6 +65,7 @@ private:
bool Get(const IoHash& HashKey, ZenCacheValue& OutValue);
void Put(const IoHash& HashKey, const ZenCacheValue& Value);
+ void Scrub(ScrubContext& Ctx);
};
RwLock m_Lock;