aboutsummaryrefslogtreecommitdiff
path: root/zenstore/CAS.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-05 18:10:19 +0200
committerStefan Boberg <[email protected]>2021-10-05 18:10:19 +0200
commit09fa320db4c7727c04eb88f5d19c4c1a3b2189e8 (patch)
tree0d0649b08d8ee479287e8ef4cc6f2507a74f9ed5 /zenstore/CAS.cpp
parenthttp: Exclude iothreadpool from compilation on non-Windows (diff)
parentPass logger from Zen client to session instead from spdlog registry. (diff)
downloadzen-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.cpp11
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);
}
/**