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/zenstore/filecas.h | |
| parent | added scrubbing related logging (diff) | |
| download | zen-51c57171d859f1893d181b68c5a2506f7909578c.tar.xz zen-51c57171d859f1893d181b68c5a2506f7909578c.zip | |
added ScrubStorage to GcStorage base class
Diffstat (limited to 'src/zenstore/filecas.h')
| -rw-r--r-- | src/zenstore/filecas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/filecas.h b/src/zenstore/filecas.h index 5dbf820e5..e4eab183a 100644 --- a/src/zenstore/filecas.h +++ b/src/zenstore/filecas.h @@ -40,9 +40,9 @@ struct FileCasStrategy final : public GcStorage bool HaveChunk(const IoHash& ChunkHash); void FilterChunks(HashKeySet& InOutChunks); void Flush(); - void ScrubStorage(ScrubContext& Ctx); + virtual void ScrubStorage(ScrubContext& ScrubCtx) override; virtual void CollectGarbage(GcContext& GcCtx) override; - virtual GcStorageSize StorageSize() const override { return {.DiskSize = m_TotalSize.load(std::memory_order::relaxed)}; } + virtual GcStorageSize StorageSize() const override; private: void MakeIndexSnapshot(); |