[BugFix][HiMamba] Fix host-protected node deletion in HiMamba tombstone del (#23696)

Co-authored-by: diemchai <diemchai@tencent.com>
Co-authored-by: Zhangheng <hzh0425@apache.org>
This commit is contained in:
JINZ
2026-05-01 21:57:47 +08:00
committed by GitHub
co-authored by diemchai Zhangheng
parent 5b7ce417d0
commit 4a50cd781e
4 changed files with 83 additions and 2 deletions
@@ -632,6 +632,11 @@ class HiMambaRadixCache(MambaRadixCache):
break
if node.parent.full_lock_ref > 0 or node.parent.mamba_lock_ref > 0:
break
if (
node.parent.host_ref_counter > 0
or node.parent.host_mamba_ref_counter > 0
):
break
parent = node.parent
@@ -664,6 +664,7 @@ class MambaRadixCache(BasePrefixCache):
value=page_aligned_kv_indices,
mamba_value=mamba_value_forked,
prev_prefix_len=req.cache_protected_len,
chunked=chunked,
)
)
new_prefix_len, mamba_exist = result.prefix_len, result.mamba_exist