]> git.proxmox.com Git - mirror_corosync.git/commit
config: Reorganise the config system
authorChristine Caulfield <ccaulfie@redhat.com>
Thu, 26 Mar 2020 08:28:18 +0000 (08:28 +0000)
committerJan Friesse <jfriesse@redhat.com>
Fri, 24 Apr 2020 14:26:44 +0000 (16:26 +0200)
commitf078fff6ebcdcd8c61ace763e6cb48ee3caef252
tree23ee081e1c30da23af41c365f2a606a6ba9154cf
parent1777d9992c194d6ca90556134731208303f786b1
config: Reorganise the config system

To be more reliable & maintainable

The basic plan here is to fix reloads to be more stable
using read/parse/verify/build/commit stages, so that any errors
will not leave corosync in an unstable state. This should
also make the code more maintainable as currently the verify/commit
stages are horribly intertwined.

Also:
- Fix local_node_pos not being updated in the new map during validation
 (broke adding and removing new nodes in the middle of the list).
- Fix reconfiguration so that nodes are indexed by nodeid and not their
  position in the list. This is an old bug that's just been carried
  over

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
exec/cfg.c
exec/totemconfig.c
exec/totemconfig.h
exec/totempg.c
exec/totemsrp.c
include/corosync/totem/totem.h
include/corosync/totem/totempg.h