diff options
| author | Stefan Boberg <[email protected]> | 2023-05-15 21:31:51 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-05-15 21:31:51 +0200 |
| commit | 269530780d86b9172926a1c86ba2b48695664f9e (patch) | |
| tree | 3186f75da3ec106e0c47b01f5798fe699f6df902 /src | |
| parent | added ScrubStorage to GcStorage base class (diff) | |
| download | zen-269530780d86b9172926a1c86ba2b48695664f9e.tar.xz zen-269530780d86b9172926a1c86ba2b48695664f9e.zip | |
MaxOS build fix: ScrubStorage must be override
Diffstat (limited to 'src')
| -rw-r--r-- | src/zenserver/cache/structuredcachestore.h | 26 |
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; |