HomeClusterLabs Projects

Low: libcib: Fix handling of return values in CIB attr update/delete

Description

Low: libcib: Fix handling of return values in CIB attr update/delete

Fixes regression introduced by 3d16e088. That commit message says:

"This function doesn't return a standard pacemaker return code. It
returns a negative value on error and the positive call ID on success."

But these may be synchronous calls, in which case the return value is
the (legacy) Pacemaker return code, not the call ID.

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

Details

Provenance
nrwahl2Authored on Apr 23 2024, 8:22 PM
Parents
rP3445d695573b: Test: libcrmcommon: Add more unit tests for pcmk__xe_copy_attrs()
Branches
Unknown
Tags
Unknown