[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:
co-authored by
diemchai
Zhangheng
parent
5b7ce417d0
commit
4a50cd781e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user