HomeClusterLabs Projects

Refactor: tools: Improve error handling on connection failure.

Description

Refactor: tools: Improve error handling on connection failure.

  • Rename handle_connection_failures to clean_up_if_connection_failure, which makes it more clear exactly what it does.
  • Pass the rc value through pcmk_rc2exitc to get the value that clean_up expects, making this no longer the caller's problem.
  • Don't check rc before calling clean_up_if_connection_failure since that's the very first thing it does. This function is safe to be unconditionally called.

Details

Provenance
clumensAuthored on Feb 3 2022, 3:24 PM
Parents
rPbb1978265589: Refactor: libpacemaker: Move CIB checks out of pacemakerd_status.
Branches
Unknown
Tags
Unknown

Event Timeline