diff options
| author | Dan Engelbrecht <[email protected]> | 2023-10-20 11:02:26 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-20 11:02:26 +0200 |
| commit | 57f054be2f4f68d0d52631838655a45855c33655 (patch) | |
| tree | 4a768d8eee548c1c4c002388e48da3d62850dc02 /src/zenstore/compactcas.cpp | |
| parent | Add --skip-delete option to gc command (#484) (diff) | |
| download | zen-57f054be2f4f68d0d52631838655a45855c33655.tar.xz zen-57f054be2f4f68d0d52631838655a45855c33655.zip | |
clean up GcContributor and GcStorage to be pure interfaces (#485)
Diffstat (limited to 'src/zenstore/compactcas.cpp')
| -rw-r--r-- | src/zenstore/compactcas.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenstore/compactcas.cpp b/src/zenstore/compactcas.cpp index a6bd71bd7..98ad20b98 100644 --- a/src/zenstore/compactcas.cpp +++ b/src/zenstore/compactcas.cpp @@ -114,12 +114,14 @@ namespace { ////////////////////////////////////////////////////////////////////////// -CasContainerStrategy::CasContainerStrategy(GcManager& Gc) : GcStorage(Gc), m_Log(logging::Get("containercas")) +CasContainerStrategy::CasContainerStrategy(GcManager& Gc) : m_Log(logging::Get("containercas")), m_Gc(Gc) { + m_Gc.AddGcStorage(this); } CasContainerStrategy::~CasContainerStrategy() { + m_Gc.RemoveGcStorage(this); } void |