aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/cache/httpstructuredcache.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-10-09 11:42:18 +0200
committerGitHub <[email protected]>2023-10-09 11:42:18 +0200
commit38d82c4c6be428b4eef4665766ef4f677915a82b (patch)
treefc3c1fcc61e37418365489a3474111c8364f5a27 /src/zenserver/cache/httpstructuredcache.cpp
parentFixes to shared server config (diff)
downloadzen-38d82c4c6be428b4eef4665766ef4f677915a82b.tar.xz
zen-38d82c4c6be428b4eef4665766ef4f677915a82b.zip
reject bad bucket reads (#456)
* extended bad bucket rejection logic to include GET operations as well as PUTs
Diffstat (limited to 'src/zenserver/cache/httpstructuredcache.cpp')
-rw-r--r--src/zenserver/cache/httpstructuredcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/cache/httpstructuredcache.cpp b/src/zenserver/cache/httpstructuredcache.cpp
index d499ccd9f..f37fe1cc9 100644
--- a/src/zenserver/cache/httpstructuredcache.cpp
+++ b/src/zenserver/cache/httpstructuredcache.cpp
@@ -3300,7 +3300,7 @@ HttpStructuredCacheService::HandleStatsRequest(HttpServerRequest& Request)
{
Cbo.BeginObject("store");
Cbo << "hits" << CacheStoreStats.HitCount << "misses" << CacheStoreStats.MissCount << "writes" << CacheStoreStats.WriteCount
- << "rejected_writes" << CacheStoreStats.RejectedWriteCount;
+ << "rejected_writes" << CacheStoreStats.RejectedWriteCount << "rejected_reads" << CacheStoreStats.RejectedReadCount;
const uint64_t StoreTotal = CacheStoreStats.HitCount + CacheStoreStats.MissCount;
Cbo << "hit_ratio" << (StoreTotal > 0 ? (double(CacheStoreStats.HitCount) / double(StoreTotal)) : 0.0);
EmitSnapshot("read", CacheStoreStats.GetOps, Cbo);