Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -602,12 +602,24 @@ def redistribute_on_node_split(
child.component_data[self.component_type].host_value = child_swa_host_value[
split_len:
].clone()
parent_swa_data = new_parent.component_data[self.component_type]
child_swa_data = child.component_data[self.component_type]
parent_swa_data.host_lock_ref = child_swa_data.host_lock_ref
host_uuid = child_swa_data.metadata.pop("host_uuid", None)
if host_uuid is not None:
parent_swa_data.metadata["host_uuid"] = host_uuid

host_lru = self.tree_core.host_lru_lists[self.component_type]
if new_parent.component_data[self.component_type].value is None:
if (
new_parent.component_data[self.component_type].value is None
and parent_swa_data.host_lock_ref == 0
):
host_lru.insert_mru(new_parent)
if child.component_data[
self.component_type
].value is None and not host_lru.in_list(child):
if (
child.component_data[self.component_type].value is None
and child_swa_data.host_lock_ref == 0
and not host_lru.in_list(child)
):
host_lru.insert_mru(child)

# parent inherits the swa_uuid from child for swa lock ref
Expand Down
Loading