[Linux-cluster] libcman initial impressions.
Lon Hohberger
lhh at redhat.com
Thu Oct 28 19:26:37 UTC 2004
Hi Patrick,
Couple of things:
There's no interface to the service manager. Is that intentional?
In cman_get_node_count(), you use GETMEMBERS - that's good, from there,
a user could allocate a buffer to call cman_get_nodes -- except, in
cman_get_nodes() you use GETALLMEMBERS -- which returns all nodes, past
and previous (IIRC).
This means, that if a node ever leaves the cluster, you can't use
cman_get_node_count() to figure out the size of the buffer needed to get
a current member list from cman_get_nodes()...
-- Lon
More information about the Linux-cluster
mailing list