Support l3 cache (mooncake store) for hiradix cache (#7211)
Co-authored-by: Zhiqiang Xie <xiezhq@stanford.edu> Co-authored-by: AniZpZ <zhuangsen.zp@antgroup.com> Co-authored-by: zuoyuan <zhangzuo21@mails.tsinghua.edu.cn> Co-authored-by: @wangyueneng.wyn <wangyueneng.wyn@antgroup.com> Co-authored-by: JinYan Su <jinyansu792@gmail.com>
This commit is contained in:
@@ -594,6 +594,10 @@ class HiRadixCache(RadixCache):
|
||||
if child.backuped:
|
||||
new_node.host_value = child.host_value[:split_len]
|
||||
child.host_value = child.host_value[split_len:]
|
||||
|
||||
if child.hash_value:
|
||||
new_node.hash_value = child.hash_value[: split_len // self.page_size]
|
||||
child.hash_value = child.hash_value[split_len // self.page_size :]
|
||||
child.parent = new_node
|
||||
child.key = child.key[split_len:]
|
||||
new_node.parent.children[self.get_child_key_fn(key)] = new_node
|
||||
|
||||
Reference in New Issue
Block a user