"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "5b11c5dc779b7e42022d8353b1b1aa6fb9b758f3"
Unverified Commit 26c8a310 authored by huangtingwei's avatar huangtingwei Committed by GitHub
Browse files

fix incorrect increase of hit count (#8533)


Co-authored-by: default avatarZhiqiang Xie <xiezhq@stanford.edu>
parent 5963e505
......@@ -560,13 +560,11 @@ class HiRadixCache(RadixCache):
prefix_len = self.key_match_fn(child.key, key)
if prefix_len < len(child.key):
new_node = self._split_node(child.key, child, prefix_len)
self.inc_hit_count(new_node)
if not new_node.evicted:
value.append(new_node.value)
node = new_node
break
else:
self.inc_hit_count(child)
if not child.evicted:
value.append(child.value)
node = child
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment