aboutsummaryrefslogtreecommitdiff
path: root/zenstore/include
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-11-30 10:52:17 +0100
committerPer Larsson <[email protected]>2021-11-30 10:52:17 +0100
commitb4b599a1dd9f3b4da022c3729144f31550292f03 (patch)
tree26889994acca6936002ebd0d91f8919eb0077f98 /zenstore/include
parentAdded z$ memory/disk layer size. (diff)
downloadzen-b4b599a1dd9f3b4da022c3729144f31550292f03.tar.xz
zen-b4b599a1dd9f3b4da022c3729144f31550292f03.zip
Added CAS total size.
Diffstat (limited to 'zenstore/include')
-rw-r--r--zenstore/include/zenstore/CAS.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/zenstore/include/zenstore/CAS.h b/zenstore/include/zenstore/CAS.h
index 5b508baa0..bba1bb721 100644
--- a/zenstore/include/zenstore/CAS.h
+++ b/zenstore/include/zenstore/CAS.h
@@ -91,6 +91,14 @@ private:
CasChunkSet m_BadCid;
};
+struct CasStoreSize
+{
+ uint64_t TinySize{};
+ uint64_t SmallSize{};
+ uint64_t LargeSize{};
+ uint64_t TotalSize{};
+};
+
/** Content Addressable Storage interface
*/
@@ -114,6 +122,7 @@ public:
virtual void Flush() = 0;
virtual void Scrub(ScrubContext& Ctx) = 0;
virtual void GarbageCollect(GcContext& GcCtx) = 0;
+ virtual CasStoreSize TotalSize() const = 0;
protected:
CasStoreConfiguration m_Config;