diff options
| author | Stefan Boberg <[email protected]> | 2023-05-15 21:25:18 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-05-15 21:25:18 +0200 |
| commit | 51c57171d859f1893d181b68c5a2506f7909578c (patch) | |
| tree | 71694f1f03a86bbcf38f9f0a8253e96dea248ecf /src/zenserver | |
| parent | added scrubbing related logging (diff) | |
| download | zen-51c57171d859f1893d181b68c5a2506f7909578c.tar.xz zen-51c57171d859f1893d181b68c5a2506f7909578c.zip | |
added ScrubStorage to GcStorage base class
Diffstat (limited to 'src/zenserver')
| -rw-r--r-- | src/zenserver/cache/structuredcache.h | 5 | ||||
| -rw-r--r-- | src/zenserver/projectstore/projectstore.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/zenserver/cache/structuredcache.h b/src/zenserver/cache/structuredcache.h index add3eb281..4f03daae4 100644 --- a/src/zenserver/cache/structuredcache.h +++ b/src/zenserver/cache/structuredcache.h @@ -78,8 +78,9 @@ public: virtual const char* BaseUri() const override; virtual void HandleRequest(HttpServerRequest& Request) override; - void Flush(); - void ScrubStorage(ScrubContext& Ctx); + + void Flush(); + void ScrubStorage(ScrubContext& Ctx); private: struct CacheRef diff --git a/src/zenserver/projectstore/projectstore.h b/src/zenserver/projectstore/projectstore.h index 37093c0fb..27e06a495 100644 --- a/src/zenserver/projectstore/projectstore.h +++ b/src/zenserver/projectstore/projectstore.h @@ -253,7 +253,6 @@ public: bool DeleteProject(std::string_view ProjectId); bool Exists(std::string_view ProjectId); void Flush(); - void ScrubStorage(ScrubContext& Ctx); void DiscoverProjects(); void IterateProjects(std::function<void(Project& Prj)>&& Fn); @@ -261,6 +260,7 @@ public: const std::filesystem::path& BasePath() const { return m_ProjectBasePath; } virtual void GatherReferences(GcContext& GcCtx) override; + virtual void ScrubStorage(ScrubContext& Ctx) override; virtual void CollectGarbage(GcContext& GcCtx) override; virtual GcStorageSize StorageSize() const override; |