HomeClusterLabs Projects

Refactor: libcrmcommon: Avoid xmlCopyNode() and xmlDocCopyNode()

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Refactor: libcrmcommon: Avoid xmlCopyNode() and xmlDocCopyNode()

To facilitate refactoring private data allocation/deallocation.

It would make sense to add a doc argument to pcmkxml_copy(), where
NULL means to use the parent's doc if parent is non-NULL. However, since
there's only one other caller of xmlDocCopyNode(), it's easier to hack
around the issue by calling pcmk
xml_copy() using the parent argument
to set the doc, and then immediately unlinking and relinking the new
node.

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

Details

Provenance
nrwahl2Authored on Sep 6 2024, 8:49 PM

Commit No Longer Exists

This commit no longer exists in the repository.