HomeClusterLabs Projects

Refactor: libcib: Drop dead code for PCMK__XA_REPLACE

Description

Refactor: libcib: Drop dead code for PCMK__XA_REPLACE

The dropped section's purpose was to delete certain items from the
target XML so that they would be replaced by the next step of
update_cib_object().

However, target is always a brand new, empty XML node. So this block can
never match anything.

The only part we need to keep is the removal of the PCMKXA_REPLACE
attribute if it exists, to preserve backward compatibility since it has
had special meaning up to now. When we can break behavioral backward
compatibility, we can drop this and drop the PCMK
XA_REPLACE
definition.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Apr 4 2024, 8:26 PM
Parents
rPc86bf9501dd8: Refactor: libcib: Clean up update_cib_object() and add_cib_object()
Branches
Unknown
Tags
Unknown