1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/include
Ronnie Sahlberg 92b61cd7d5 Expand the client async framework so that it can take a callback function.
This allows us to use the async framework also for controls that return
outdata.

Add a "capabilities" field to the ctdb_node structure. This field is
only initialized and kept valid inside the recovery daemon context and not
inside the main ctdb daemon.

change the GET_CAPABILITIES control to return the capabilities in outdata instead of in the res return variable.

When performing a recovery inside the recovery daemon, read the capabilities from all connected nodes and update the ctdb->nodes list of nodes.
when building the new vnnmap after the database rebuild in recovery, do not include any nodes which lack the LMASTER capability in the new vnnmap.
Unless there are no available connected node that sports the LMASTER capability in which case we let the local node (recmaster) take on the lmaster role temporarily (i.e. become a member of the vnnmap list)

(This used to be ctdb commit 0f1883c69c689b28b0c04148774840b2c4081df6)
2008-05-06 15:42:59 +10:00
..
cmdline.h moved cmdline.c to common code 2007-04-17 22:16:50 +10:00
ctdb_private.h Expand the client async framework so that it can take a callback function. 2008-05-06 15:42:59 +10:00
ctdb.h Add a capabilities field to the ctdb structure 2008-05-06 10:02:27 +10:00
idtree.h - added in idtree for efficient reqid handling 2006-11-28 20:48:34 +11:00
includes.h added debug constants to allow for better mapping to syslog levels 2008-02-04 17:44:24 +11:00