]> git.proxmox.com Git - mirror_corosync.git/commit
votequorum: Fix up quorum/nodelist callbacks
authorChristine Caulfield <ccaulfie@redhat.com>
Thu, 29 Oct 2015 11:22:47 +0000 (11:22 +0000)
committerJan Friesse <jfriesse@redhat.com>
Tue, 28 Jun 2016 11:58:39 +0000 (13:58 +0200)
commit3a5d51fca742fa7b179405ab8a3d6540d9818bad
tree02fec44296231b96e1827ef85fb4df203fd0ce3f
parent21911d3906b0c3657c6896284497bfcef8b5c851
votequorum: Fix up quorum/nodelist callbacks

This patch tidies the two state change callbacks and explains them
in the man page:

The difference between votequorum_nodelist_notification_t and
votequorum_quorum_notification_t is subtle but important.
The 'nodelist' callback is sent at the start of a cluster state
transition and contains the new ring_id and only the list of
nodes that are included in the sync state - ie only active nodes. No
quorum information is included this callback because it is not
available at that time.

The 'quorum' callback is sent after the cluster state transition has
completed and does contain quorum information.
In addition, the nodelist contains a list of all nodes known to
votequorum (whether up or down) and their state as well
as information about the quorum device attached (if any). quorum
callbacks will not be sent for qdevice up and down
events unless they affect quorum.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
cts/agents/votequorum_test_agent.c
exec/votequorum.c
include/corosync/ipc_votequorum.h
include/corosync/votequorum.h
lib/votequorum.c
man/votequorum_initialize.3.in
test/testvotequorum1.c
test/testvotequorum2.c
tools/corosync-quorumtool.c