1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

Manually remove read-only node from ReadOnlyNodes on node removal (because nodes are only deactivated)

This commit is contained in:
Alexander Presnyakov
2025-07-23 20:05:37 +00:00
parent a193104ee1
commit f956f597a0
2 changed files with 12 additions and 2 deletions

View File

@ -178,8 +178,14 @@ def remove_node(
_remove_Module_entries(c_root, node)
_remove_from_ExeMgrs(c_root, node)
# FIXME MCOL-6105: for some reason deactivate_only is always True, so the nodes are never removed from InactiveNodes
if deactivate_only:
_deactivate_node(c_root, node)
# Remove node from ReadOnlyNodes if it is present there
read_only_nodes = c_root.find('./ReadOnlyNodes')
if read_only_nodes is not None:
__remove_helper(read_only_nodes, node)
else:
# TODO: unspecific name, need to think of a better one
_remove_node(c_root, node)