fix(shmem): don't cache nullptr in GetRegionFromCache

A failed region lookup was inserted into the thread-local cache as
nullptr, making the failure permanent for the lifetime of the cache
generation - retrying never healed because the fast path would return
nullptr without calling GetRegion again. Skip the cache insert on
failure so subsequent calls retry the slow path.
This commit is contained in:
Alexey Rybalchenko
2026-06-10 15:09:47 +02:00
committed by Dennis Klein
parent 215c31428b
commit 1597999aed

View File

@@ -390,8 +390,10 @@ class Manager
}
auto* lRegion = GetRegion(id);
if (lRegion) {
fTlRegionCache.fRegionsTLCache.emplace_back(lRegion, id, fShmId64);
fTlRegionCache.fRegionsTLCacheGen = fRegionsGen;
}
return lRegion;
}