1VOTEQUORUM_TRACKSTACRoTr(o3s)ync Cluster Engine Programmer'sVMOaTnEuQaUlORUM_TRACKSTART(3)
2
3
4

NAME

6       votequorum_trackstart - Enable callbacks notification.
7

SYNOPSIS

9       #include <corosync/votequorum.h>
10
11       int  votequorum_trackstart(votequorum_handle_t  *handle,  uint64_t con‐
12       text, unsigned int flags);
13

DESCRIPTION

15       The votequorum_trackstart function is used to enable callbacks  notifi‐
16       cation from the votequorum API.
17
18       Every  time  the  voting configuraton changes (eg a node joins or leave
19       the cluster) or the quorum status change or the expected votes changes,
20       the notification is queued.
21
22       The  notification is dispatched via votequorum_dispatch() function that
23       will execute the callback.
24
25       The context option allows one to set a tracking context.
26
27       The flags argument is defined by one or more of  the  following  values
28       and values can be bitwise-or'd
29
30       #define CS_TRACK_CURRENT      0x01
31       #define CS_TRACK_CHANGES      0x02
32       #define CS_TRACK_CHANGES_ONLY 0x04
33

RETURN VALUE

35       This  call returns the CS_OK value if successful, otherwise an error is
36       returned.
37

ERRORS

39       CS_ERR_TRY_AGAIN Resource temporarily unavailable
40
41       CS_ERR_INVALID_PARAM Invalid argument
42
43       CS_ERR_ACCESS Permission denied
44
45       CS_ERR_LIBRARY The connection failed
46
47       CS_ERR_INTERRUPT System call interrupted by a signal
48
49       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
50
51       CS_ERR_MESSAGE_ERROR Incorrect auth message received
52
53       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
54
55

SEE ALSO

57       votequorum_overview(8),   votequorum_initialize(3),   votequorum_final‐
58       ize(3),    votequorum_getinfo(3),   votequorum_trackstop(3),   votequo‐
59       rum_fd_get(3), votequorum_dispatch(3), votequorum_context_set(3), vote‐
60       quorum_context_get(3),        votequorum_setexpected(3),       votequo‐
61       rum_setvotes(3)
62
63corosync Man Page                 2018-10-30          VOTEQUORUM_TRACKSTART(3)
Impressum