aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-15 21:31:51 +0200
committerStefan Boberg <[email protected]>2023-05-15 21:31:51 +0200
commit269530780d86b9172926a1c86ba2b48695664f9e (patch)
tree3186f75da3ec106e0c47b01f5798fe699f6df902 /src
parentadded ScrubStorage to GcStorage base class (diff)
downloadzen-269530780d86b9172926a1c86ba2b48695664f9e.tar.xz
zen-269530780d86b9172926a1c86ba2b48695664f9e.zip
MaxOS build fix: ScrubStorage must be override
Diffstat (limited to 'src')
-rw-r--r--src/zenserver/cache/structuredcachestore.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/zenserver/cache/structuredcachestore.h b/src/zenserver/cache/structuredcachestore.h
index 5ae8b97a0..28966fc9a 100644
--- a/src/zenserver/cache/structuredcachestore.h
+++ b/src/zenserver/cache/structuredcachestore.h
@@ -439,16 +439,22 @@ public:
ZenCacheNamespace(GcManager& Gc, const std::filesystem::path& RootDir);
~ZenCacheNamespace();
- bool Get(std::string_view Bucket, const IoHash& HashKey, ZenCacheValue& OutValue);
- void Put(std::string_view Bucket, const IoHash& HashKey, const ZenCacheValue& Value);
- bool Drop();
- bool DropBucket(std::string_view Bucket);
- void Flush();
- void ScrubStorage(ScrubContext& Ctx);
- uint64_t DiskLayerThreshold() const { return m_DiskLayerSizeThreshold; }
- virtual void GatherReferences(GcContext& GcCtx) override;
- virtual void CollectGarbage(GcContext& GcCtx) override;
- virtual GcStorageSize StorageSize() const override;
+ bool Get(std::string_view Bucket, const IoHash& HashKey, ZenCacheValue& OutValue);
+ void Put(std::string_view Bucket, const IoHash& HashKey, const ZenCacheValue& Value);
+ bool Drop();
+ bool DropBucket(std::string_view Bucket);
+ void Flush();
+ uint64_t DiskLayerThreshold() const { return m_DiskLayerSizeThreshold; }
+
+ // GcContributor
+
+ virtual void GatherReferences(GcContext& GcCtx) override;
+
+ // GcStorage
+ virtual void ScrubStorage(ScrubContext& ScrubCtx) override;
+ virtual void CollectGarbage(GcContext& GcCtx) override;
+ virtual GcStorageSize StorageSize() const override;
+
Info GetInfo() const;
std::optional<BucketInfo> GetBucketInfo(std::string_view Bucket) const;