[Bugfix] Fix ARC touch KeyError for non-ready T1 blocks in kv offload (#34576)
Signed-off-by: Yiqi Xue <xuey666@gmail.com>
This commit is contained in:
@@ -90,7 +90,8 @@ class ARCOffloadingManager(OffloadingManager):
|
|||||||
block = self.t1.pop(block_hash)
|
block = self.t1.pop(block_hash)
|
||||||
if not block.is_ready:
|
if not block.is_ready:
|
||||||
# block was just prepared to be stored, not really touched twice
|
# block was just prepared to be stored, not really touched twice
|
||||||
self.t1.move_to_end(block_hash)
|
# keep it in T1 and mark as most recently used
|
||||||
|
self.t1[block_hash] = block
|
||||||
else:
|
else:
|
||||||
self.t2[block_hash] = block
|
self.t2[block_hash] = block
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user