HomeClusterLabs Projects

Refactor: libpacemaker: Default to sync dispatch in pcmk_cluster_queries

Description

Refactor: libpacemaker: Default to sync dispatch in pcmk_cluster_queries

If message_timeout_ms == 0 for various functions in
pcmk_cluster_queries.c, default to using sync dispatch instead of
starting a mainloop with timeout 30s that behaves basically like sync
dispatch.

This makes it easier to reason about calling these functions when the
caller may have its own mainloop.

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

Details

Provenance
nrwahl2Authored on Oct 11 2022, 6:14 PM
Parents
rP92e4bc24084f: Low: libpacemaker: Fix pacemakerd-health XML output
Branches
Unknown
Tags
Unknown