HomeClusterLabs Projects

Refactor: daemons: Condense duplicated IPC code.
65134ba4c779Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: daemons: Condense duplicated IPC code.

Both places that call lrmd_process_message first add several additional
attributes to the request XML, so it makes sense to move that code into
lrmd_process_message instead.

Note that there are two different approaches to setting client->name if
it's missing. I don't see why the attribute would ever be missing, so I
think it's safe to get rid of the lengthier approach that grabs the
client PID as a last option.

Details

Provenance
clumensAuthored on Fri, Jul 11, 2:10 PM
Parents
rP02974a289558: Refactor: daemons: Add lrmd_process_message.
Branches
Unknown
Tags
Unknown

Event Timeline