HomeClusterLabs Projects

Refactor: executor: use pcmk__action_result_t in lrmd_cmd_t

Description

Refactor: executor: use pcmk__action_result_t in lrmd_cmd_t

... along with its accessor functions. This is purely a refactor; no additional
exit reasons are set as of this commit.

While the behavior remains the same, there is a slight change in
implementation. Previously, lrmd_cmd_t only stored one set of output when the
command completed: stderr if present, otherwise stdout. Now, the result member
stores both, and the proper one is selected when used. This will increase
memory usage in some situations, but it should be temporary.

Details

Provenance
kgaillotAuthored on May 27 2021, 5:05 PM
Parents
rP1c8b10288a72: Refactor: libcrmcommon: new internal API for action results
Branches
Unknown
Tags
Unknown

Event Timeline