aboutsummaryrefslogtreecommitdiff
path: root/zenserver/upstream/upstreamcache.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-09-19 14:05:54 +0200
committerGitHub <[email protected]>2022-09-19 05:05:54 -0700
commitdef3cf543afd926ad9b7289859afcc6cf7e44870 (patch)
tree079c519071c6729fec7c46444a68de26a2946bba /zenserver/upstream/upstreamcache.cpp
parentLoadCompactBinary gracefully handles read failures and sizes larger than the ... (diff)
downloadzen-def3cf543afd926ad9b7289859afcc6cf7e44870.tar.xz
zen-def3cf543afd926ad9b7289859afcc6cf7e44870.zip
rename URI chunk requests from value -> chunk (#166)
Diffstat (limited to 'zenserver/upstream/upstreamcache.cpp')
-rw-r--r--zenserver/upstream/upstreamcache.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/zenserver/upstream/upstreamcache.cpp b/zenserver/upstream/upstreamcache.cpp
index 8288b910d..6976e5bed 100644
--- a/zenserver/upstream/upstreamcache.cpp
+++ b/zenserver/upstream/upstreamcache.cpp
@@ -346,9 +346,9 @@ namespace detail {
return Result;
}
- virtual GetUpstreamCacheResult GetCacheValue(std::string_view Namespace, const CacheKey&, const IoHash& ValueContentId) override
+ virtual GetUpstreamCacheResult GetCacheChunk(std::string_view Namespace, const CacheKey&, const IoHash& ValueContentId) override
{
- ZEN_TRACE_CPU("Upstream::Horde::GetSingleCacheValue");
+ ZEN_TRACE_CPU("Upstream::Horde::GetSingleCacheChunk");
try
{
@@ -913,16 +913,16 @@ namespace detail {
return {.Error{.ErrorCode = Result.ErrorCode, .Reason = std::move(Result.Reason)}};
}
- virtual GetUpstreamCacheResult GetCacheValue(std::string_view Namespace,
+ virtual GetUpstreamCacheResult GetCacheChunk(std::string_view Namespace,
const CacheKey& CacheKey,
const IoHash& ValueContentId) override
{
- ZEN_TRACE_CPU("Upstream::Zen::GetCacheValue");
+ ZEN_TRACE_CPU("Upstream::Zen::GetCacheChunk");
try
{
ZenStructuredCacheSession Session(GetClientRef());
- const ZenCacheResult Result = Session.GetCacheValue(Namespace, CacheKey.Bucket, CacheKey.Hash, ValueContentId);
+ const ZenCacheResult Result = Session.GetCacheChunk(Namespace, CacheKey.Bucket, CacheKey.Hash, ValueContentId);
m_Status.SetFromErrorCode(Result.ErrorCode, Result.Reason);
@@ -1642,11 +1642,11 @@ public:
}
}
- virtual GetUpstreamCacheResult GetCacheValue(std::string_view Namespace,
+ virtual GetUpstreamCacheResult GetCacheChunk(std::string_view Namespace,
const CacheKey& CacheKey,
const IoHash& ValueContentId) override
{
- ZEN_TRACE_CPU("Upstream::GetCacheValue");
+ ZEN_TRACE_CPU("Upstream::GetCacheChunk");
if (m_Options.ReadUpstream)
{
@@ -1662,7 +1662,7 @@ public:
{
metrics::OperationTiming::Scope Scope(Stats.CacheGetRequestTiming);
- Result = Endpoint->GetCacheValue(Namespace, CacheKey, ValueContentId);
+ Result = Endpoint->GetCacheChunk(Namespace, CacheKey, ValueContentId);
}
Stats.CacheGetCount.Increment(1);
@@ -1679,7 +1679,7 @@ public:
{
Stats.CacheErrorCount.Increment(1);
- ZEN_WARN("get cache value FAILED, endpoint '{}', reason '{}', error code '{}'",
+ ZEN_WARN("get cache chunk FAILED, endpoint '{}', reason '{}', error code '{}'",
Endpoint->GetEndpointInfo().Url,
Result.Error.Reason,
Result.Error.ErrorCode);