diff options
| author | Stefan Boberg <[email protected]> | 2021-10-05 18:10:19 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-05 18:10:19 +0200 |
| commit | 09fa320db4c7727c04eb88f5d19c4c1a3b2189e8 (patch) | |
| tree | 0d0649b08d8ee479287e8ef4cc6f2507a74f9ed5 /zenstore/CAS.cpp | |
| parent | http: Exclude iothreadpool from compilation on non-Windows (diff) | |
| parent | Pass logger from Zen client to session instead from spdlog registry. (diff) | |
| download | zen-09fa320db4c7727c04eb88f5d19c4c1a3b2189e8.tar.xz zen-09fa320db4c7727c04eb88f5d19c4c1a3b2189e8.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen into main
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); } /** |