Bugfix: Writing to storage when write-back method is chosen (#14718)

This commit is contained in:
MMuzzammil1
2026-01-23 08:08:25 +09:00
committed by GitHub
parent 13f88045b3
commit 2399af5557

View File

@@ -308,7 +308,9 @@ class HiRadixCache(RadixCache):
for _, finish_event, ack_list in self.cache_controller.ack_write_queue:
finish_event.synchronize()
for ack_id in ack_list:
del self.ongoing_write_through[ack_id]
backuped_node = self.ongoing_write_through.pop(ack_id)
if self.enable_storage:
self.write_backup_storage(backuped_node)
self.cache_controller.ack_write_queue.clear()
assert len(self.ongoing_write_through) == 0
return