aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-01 23:34:20 +0200
committerDan Engelbrecht <[email protected]>2022-05-01 23:34:57 +0200
commit75b1dd112aead7c5246fa84928b9cd96dde49cbc (patch)
tree98e74af2d1563e88791b149cb5d0d896206705cb /zenserver/cache/structuredcachestore.cpp
parentreimplement CasContainerStrategy::Scrub (diff)
downloadzen-75b1dd112aead7c5246fa84928b9cd96dde49cbc.tar.xz
zen-75b1dd112aead7c5246fa84928b9cd96dde49cbc.zip
respect Ctx.RunRecovery()
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index f26d599ab..9ae5b0f17 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -1497,6 +1497,11 @@ ZenCacheDiskLayer::CacheBucket::Scrub(ScrubContext& Ctx)
m_Index.erase(BadKey);
}
}
+
+ // Let whomever it concerns know about the bad chunks. This could
+ // be used to invalidate higher level data structures more efficiently
+ // than a full validation pass might be able to do
+ Ctx.ReportBadCasChunks(BadKeys);
}
void