diff options
author | Ronnie Sahlberg <sahlberg@ronnie> | 2007-10-08 09:47:20 +1000 |
---|---|---|
committer | Ronnie Sahlberg <sahlberg@ronnie> | 2007-10-08 09:47:20 +1000 |
commit | ab5d098bf666dc6093c8a56424f7df60b688f120 (patch) | |
tree | 9e109a833afed47b5e80847b18c8316ab269e6ae /ctdb/utils | |
parent | de6c5ed14d3885952f94c9c9e3e2b15e3e7c298f (diff) | |
download | samba-ab5d098bf666dc6093c8a56424f7df60b688f120.tar.gz |
add a function in the ctdb tool to determine whether the local node is
the recmaster or not.
return 0 if the node is the recmaster and 1 (true) if it is not or if
we could not communicate with the ctdb daemon.
call it 'isnotrecmaster' to cope with that if the tool could not bind to
the socket to tyalk to the daemon, the tool will automatically return an
error and exit code 1
thus the tool will only return 0 if it could talk successfully to the
local daemon and if the local daemon confirms this node is the recmaster
(This used to be ctdb commit ae5fcb790b6c3985f514fa8a96bc00c2619f2a28)
Diffstat (limited to 'ctdb/utils')
0 files changed, 0 insertions, 0 deletions