HomeClusterLabs Projects

Refactor: libcrmcommon: simplify XML filtering code

Description

Refactor: libcrmcommon: simplify XML filtering code

Move code related to filtering XML attributes that aren't needed for
CIB digests to digest.c, functionizing to simplify, reduce code duplication
and improve readability.

In the theoretical case where an XML element contains more than one instance of
a filterable attribute with the same name, the previous code would filter the
first instance only. However that should not be possible in practice, so now
all instances are filtered, to simplify the code (and make more sense).

Details

Provenance
kgaillotAuthored on Aug 19 2020, 6:58 PM
Parents
rPc927ba4adaea: Refactor: libcrmcommon: best practices for internal XML-related functions
Branches
Unknown
Tags
Unknown

Event Timeline