1VOTEQUORUM_VOTES(3)Corosync Cluster Engine Programmer's ManuaVlOTEQUORUM_VOTES(3)
2
3
4

NAME

6       votequorum_setvotes - Sets the number of votes for a node
7

SYNOPSIS

9       #include <corosync/votequorum.h>
10
11       int  votequorum_setexpected(votequorum_handle_t  handle,  unsigned  int
12       nodeid, int votes);
13

DESCRIPTION

15       The votequorum_setvotes is used to change the number of  votes  that  a
16       node  has. Note that it is not possible, using this function, to change
17       the number of node votes such that the cluster goes inquorate.
18

RETURN VALUE

20       This call returns the CS_OK value if successful, otherwise an error  is
21       returned.
22

ERRORS

24       CS_ERR_TRY_AGAIN Resource temporarily unavailable
25
26       CS_ERR_INVALID_PARAM Invalid argument
27
28       CS_ERR_ACCESS Permission denied
29
30       CS_ERR_LIBRARY The connection failed
31
32       CS_ERR_INTERRUPT System call interrupted by a signal
33
34       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
35
36       CS_ERR_MESSAGE_ERROR Incorrect auth message received
37
38       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
39
40

SEE ALSO

42       votequorum_overview(3),   votequorum_initialize(3),   votequorum_final‐
43       ize(3),   votequorum_getinfo(3),   votequorum_trackstart(3),   votequo‐
44       rum_trackstop(3),  votequorum_fd_get(3),  votequorum_dispatch(3), vote‐
45       quorum_context_set(3),   votequorum_context_get(3),   votequorum_setex‐
46       pected(3)
47
48corosync Man Page                 2019-01-31               VOTEQUORUM_VOTES(3)
Impressum