[UnifiedTree] fix: backup SWA-split parent before child under write-through (#25065)

This commit is contained in:
shuwenn
2026-05-25 00:21:57 +08:00
committed by GitHub
parent 9d50cd9742
commit 36eb72bf12
2 changed files with 37 additions and 1 deletions
@@ -1170,7 +1170,8 @@ class UnifiedRadixCache(BasePrefixCache):
if not write_back and (
node.parent is not self.root_node and not node.parent.backuped
):
return 0
if self.write_backup(node.parent) <= 0:
return 0
device_value = node.component_data[BASE_COMPONENT_TYPE].value
kv_xfer = PoolTransfer(name=PoolName.KV, device_indices=device_value)