HomeClusterLabs Projects

Refactor: fencer: create reply inside API request handling

Description

Refactor: fencer: create reply inside API request handling

Previously, handle_request() would set need_reply to true or false when
handling the request, then create and send the reply if needed at the end.

Now, the reply is created when handling the request if needed, and the reply is
sent at the end if reply is not NULL.

This creates a small amount of code duplication but will make planned
refactoring easier.

Details

Provenance
kgaillotAuthored on Feb 7 2022, 5:49 PM
Parents
rP20f56e62a7e9: Refactor: executor: use full result to track fence probe result
Branches
Unknown
Tags
Unknown