]> git.proxmox.com Git - mirror_corosync.git/commit
cfg: Reinstate cfg tracking
authorChristine Caulfield <ccaulfie@redhat.com>
Mon, 11 Jan 2021 09:28:34 +0000 (09:28 +0000)
committerJan Friesse <jfriesse@redhat.com>
Thu, 14 Jan 2021 15:09:46 +0000 (16:09 +0100)
commit461cf494672d8ed468a14093f943b8e679711935
tree7c87ed9c24676ec6a35b548b5e032d57f5a5f5ff
parentd76fc6ab85c1ca15975a99172ecea2c2a7a1f78c
cfg: Reinstate cfg tracking

CFG tracking was removed in 815375411e80131f31b172d7c43625769ee8b53d,
probably as a mistake, as part of the tidy up of cfg and the removal of
dynamic loading. This means that shutdown tracking (using
cfg_try_shutdown()) stopped working.

This patch restores the trackstart & trackstop API calls (renamed to be
more consistent with the exiting libraries) so that shutdown tracking
can be used again.

Change cfg.shutdown_timeout to be in milliseconds rather than seconds
nd use libqb macros for conversion.

Add --force option to corosync-cfgtool -H

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
exec/cfg.c
include/corosync/cfg.h
include/corosync/ipc_cfg.h
lib/cfg.c
lib/libcfg.versions
lib/libcfg.verso
man/cmap_keys.7
man/corosync-cfgtool.8
tools/corosync-cfgtool.c