You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ez...@apache.org on 2025/09/04 21:01:14 UTC
(trafficserver) branch 9.2.x updated: Fix HostDB sync issue by preserving expiry_time on load (#12431)
This is an automated email from the ASF dual-hosted git repository.
eze pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new 17e52b02d0 Fix HostDB sync issue by preserving expiry_time on load (#12431)
17e52b02d0 is described below
commit 17e52b02d0a98969f246b7327771e7caf553eae4
Author: Katsutoshi Ikenoya <ki...@lycorp.co.jp>
AuthorDate: Fri Sep 5 06:01:08 2025 +0900
Fix HostDB sync issue by preserving expiry_time on load (#12431)
---
iocore/hostdb/P_RefCountCache.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iocore/hostdb/P_RefCountCache.h b/iocore/hostdb/P_RefCountCache.h
index b6b67be5ee..fcb09aed33 100644
--- a/iocore/hostdb/P_RefCountCache.h
+++ b/iocore/hostdb/P_RefCountCache.h
@@ -611,7 +611,7 @@ LoadRefCountCacheFromPath(RefCountCache<CacheEntryType> &cache, const std::strin
CacheEntryType *newItem = load_func((char *)&buf, tmpValue.size);
if (newItem != nullptr) {
- cache.put(tmpValue.key, newItem, tmpValue.size - sizeof(CacheEntryType));
+ cache.put(tmpValue.key, newItem, tmpValue.size - sizeof(CacheEntryType), tmpValue.expiry_time);
}
};