Bugfix: Writing to storage when write-back method is chosen (#14718)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user