diff options
| author | Per Larsson <[email protected]> | 2021-12-10 15:29:18 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-12-10 15:29:18 +0100 |
| commit | 370d0134a7f755b1e39fbba5c9482ecc9ff3a0fe (patch) | |
| tree | 7329dc070434ccc265be6a7651274366d8c9fc06 /zenstore/CAS.cpp | |
| parent | Set GC default enabled and interval set to zero (off). (diff) | |
| download | zen-370d0134a7f755b1e39fbba5c9482ecc9ff3a0fe.tar.xz zen-370d0134a7f755b1e39fbba5c9482ecc9ff3a0fe.zip | |
Added size to GcStorage.
Diffstat (limited to 'zenstore/CAS.cpp')
| -rw-r--r-- | zenstore/CAS.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenstore/CAS.cpp b/zenstore/CAS.cpp index 40846e368..18abd2cf5 100644 --- a/zenstore/CAS.cpp +++ b/zenstore/CAS.cpp @@ -324,9 +324,9 @@ CasImpl::GarbageCollect(GcContext& GcCtx) CasStoreSize CasImpl::TotalSize() const { - const uint64_t Tiny = m_TinyStrategy.TotalSize(); - const uint64_t Small = m_SmallStrategy.TotalSize(); - const uint64_t Large = m_LargeStrategy.TotalSize(); + const uint64_t Tiny = m_TinyStrategy.StorageSize().DiskSize; + const uint64_t Small = m_SmallStrategy.StorageSize().DiskSize; + const uint64_t Large = m_LargeStrategy.StorageSize().DiskSize; return {.TinySize = Tiny, .SmallSize = Small, .LargeSize = Large, .TotalSize = Tiny + Small + Large}; } |