diff options
| author | Stefan Boberg <[email protected]> | 2021-10-05 22:25:53 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-05 22:25:53 +0200 |
| commit | 20ac7384f8ca558f1fb933eda846604792240ea0 (patch) | |
| tree | e5c95b422b847af50b77807af916e389fcaf83aa /zenstore/CAS.cpp | |
| parent | stats: Mean returns zero when the count is zero (diff) | |
| download | zen-20ac7384f8ca558f1fb933eda846604792240ea0.tar.xz zen-20ac7384f8ca558f1fb933eda846604792240ea0.zip | |
Merged from upstream
Diffstat (limited to 'zenstore/CAS.cpp')
| -rw-r--r-- | zenstore/CAS.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/zenstore/CAS.cpp b/zenstore/CAS.cpp index 808fc8fb3..a4bbfa340 100644 --- a/zenstore/CAS.cpp +++ b/zenstore/CAS.cpp @@ -96,9 +96,16 @@ GcContext::ContributeCas(std::span<const IoHash> Cas) ////////////////////////////////////////////////////////////////////////// void -ScrubContext::ReportBadChunks(std::span<IoHash> BadChunks) +ScrubContext::ReportBadCasChunks(std::span<IoHash> BadCasChunks) { - ZEN_UNUSED(BadChunks); + m_BadCas.AddChunksToSet(BadCasChunks); +} + +void +ScrubContext::ReportScrubbed(uint64_t ChunkCount, uint64_t ChunkBytes) +{ + m_ChunkCount.fetch_add(ChunkCount); + m_ByteCount.fetch_add(ChunkBytes); } /** |