Method: Corosync::CPG::MemberList#reason

Defined in:
lib/corosync/cpg/member_list.rb

#reason(member) ⇒ Symbol, ...

In the case of join/leave lists, this gets the reason a member is in the list.

Parameters:

Returns:

  • (Symbol, Integer, NilClass)

    Reason for the membership.

    • :join => The member joined the group normally.

    • :leave => The member left the group normally.

    • :nodedown => The member left the group because the node left the cluster.

    • :nodeup => The member joined the group because it was already a member of a group on a node that just joined the cluster.

    • :procdown => The member left the group uncleanly (without calling Corosync::CPG#leave)



89
90
91
92
# File 'lib/corosync/cpg/member_list.rb', line 89

def reason(member)
	member = Corosync::CPG::Member.new if !member.is_a?(Corosync::CPG::Member)
	@list[member]
end