[Unified] Fix UnifiedRadixCache write_backup issue in write-back mode(#27108)

Co-authored-by: hzh0425 <hzh0425@apache.org>
This commit is contained in:
Yongji Wu
2026-06-11 08:28:24 +08:00
committed by GitHub
co-authored by hzh0425
parent 740305e1d9
commit db061e97c0
2 changed files with 33 additions and 1 deletions
@@ -1424,7 +1424,9 @@ class UnifiedRadixCache(KVCacheEventMixin, BasePrefixCache):
self.cache_controller is not None
and self.cache_controller.write_policy == "write_back"
):
self.write_backup(node, write_back=True)
written = self.write_backup(node, write_back=True)
if written == 0:
return
self.writing_check(write_back=True)
self._evict_to_host(node, tracker)
return