diff options
| author | Stefan Boberg <[email protected]> | 2023-05-23 15:00:55 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-23 15:00:55 +0200 |
| commit | 55844c3f72866711f9a10b987f14da5622cc2d63 (patch) | |
| tree | a872fdb170bf1019cdb4b5cc17c53dcc1585e3cc /src/zenserver/upstream/upstreamcache.cpp | |
| parent | use exception when allocations fail rather than asserts (#319) (diff) | |
| download | zen-55844c3f72866711f9a10b987f14da5622cc2d63.tar.xz zen-55844c3f72866711f9a10b987f14da5622cc2d63.zip | |
cache log sessionid (#297)
* implemented structured cache logging to be used as audit trail to help analyse potential cache pollution/corruption
* added common header to all known log targets
* made Oid::operator bool explicit to avoid logging/text format mishaps
* HttpClient::operator bool -> explicit
* changed cache logs to not rotate on start in order to retain more history
* added CacheRequestContext
* properly initialize request context
* log session id and request id on zencacehstore get/put
* changelog
Diffstat (limited to 'src/zenserver/upstream/upstreamcache.cpp')
| -rw-r--r-- | src/zenserver/upstream/upstreamcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/upstream/upstreamcache.cpp b/src/zenserver/upstream/upstreamcache.cpp index 4b6338f3a..9f6a0abc4 100644 --- a/src/zenserver/upstream/upstreamcache.cpp +++ b/src/zenserver/upstream/upstreamcache.cpp @@ -1901,7 +1901,7 @@ private: ZenCacheValue CacheValue; std::vector<IoBuffer> Payloads; - if (!m_CacheStore.Get(CacheRecord.Namespace, CacheRecord.Key.Bucket, CacheRecord.Key.Hash, CacheValue)) + if (!m_CacheStore.Get(CacheRecord.Context, CacheRecord.Namespace, CacheRecord.Key.Bucket, CacheRecord.Key.Hash, CacheValue)) { ZEN_WARN("process upstream FAILED, '{}/{}/{}', cache record doesn't exist", CacheRecord.Namespace, |