HomeClusterLabs Projects

Low: controller: handle malformed CIB diffs better

Description

Low: controller: handle malformed CIB diffs better

Static analysis wasn't happy we were dereferencing the result of
first_named_child(), which can theoretically be NULL (though not in practice).

Also, we were asserting that the XML element was of the expected type.

In both cases, now do a CRM_CHECK() so the controller ignores malformed CIB
diffs rather than crash.

Details

Provenance
kgaillotAuthored on Aug 11 2021, 6:10 PM
Parents
rP6a945b19c4a8: Refactor: scheduler: avoid duplicating every constraint XML
Branches
Unknown
Tags
Unknown

Event Timeline