1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/common
Ronnie Sahlberg 6681da31df add an initial implementation of a service_id structure and three
controls to  register/unregister/check a server id.

a server id consists of TYPE:VNN:ID    where type is specific to the 
application.  VNN is the node where the serverid was registered and ID 
might be a node unique identifier such as a pid or similar.


Clients can register a server id for themself at the local ctdb daemon.
When a client dissappears   or when the domain socket connection for the 
client drops  then any and all server ids registered across that domain 
socket will also be automatically removed from the store.

clients can register as many server_ids as they want at the same time    
but each TYPE:VNN:ID must be globally unique.

Clients have the option of explicitely unregister a server id by using 
the UNREGISTER control.


Registration and unregistration can only be done by clients to the local 
daemon. clients can not register their server id to a remote node.


clients can check if a server id does exist on any ctdb node in the 
network by using the check control

(This used to be ctdb commit d44798feec26147c5cc05922cb2186f0ef0307be)
2007-08-24 15:53:41 +10:00
..
cmdline.c add an initial implementation of a service_id structure and three 2007-08-24 15:53:41 +10:00
ctdb_io.c update lib/replace from samba4 2007-07-10 15:29:31 +10:00
ctdb_ltdb.c update lib/replace from samba4 2007-07-10 15:29:31 +10:00
ctdb_message.c update lib/replace from samba4 2007-07-10 15:29:31 +10:00
ctdb_util.c - merge from ronnie 2007-07-13 11:31:18 +10:00
rb_tree.c add a function to return the first entry that is stored in a tree where 2007-08-15 10:57:21 +10:00
rb_tree.h add a function to return the first entry that is stored in a tree where 2007-08-15 10:57:21 +10:00
system_aix.c add an initial system_aix.c to manage raw sockets under aix 2007-07-14 10:27:34 +10:00
system_linux.c merge from volker 2007-08-22 17:18:55 +10:00