From 9b48162e99d6b1d8848a03cf3d3f747a1d1b2525 Mon Sep 17 00:00:00 2001 From: yknoya Date: Wed, 6 Aug 2025 16:19:55 +0900 Subject: [PATCH] Fix HostDB sync issue by preserving expiry_time on load --- 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 b6b67be5ee1..fcb09aed335 100644 --- a/iocore/hostdb/P_RefCountCache.h +++ b/iocore/hostdb/P_RefCountCache.h @@ -611,7 +611,7 @@ LoadRefCountCacheFromPath(RefCountCache &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); } };