HomeClusterLabs Projects

Refactor: tools: Create crm_mon.c cib object later

Description

Refactor: tools: Create crm_mon.c cib object later

It's not needed until the call to one_shot(). There was probably a time
when we based decisions on the cib->variant sooner, as the comment
suggested. However, the only things that use cib->variant now are
mon_refresh_display(), setup_api_connections(), and the scheduler object
initialization. All of those happen later.

This avoids the need to think about the cib object when daemonizing.

(cib__set_output() checks cib->variant, but simply returns early if not
cib_remote.)

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

Details

Provenance
nrwahl2Authored on Tue, Aug 12, 2:05 PM
Parents
rP6cb2fd95c864: Refactor: tools: Free/compare some crm_mon.c options correctly
Branches
Unknown
Tags
Unknown