CTDB_FATAL() try to drop all ip addresses when shutting down through ctdb_fatal()
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 7 Mar 2011 04:05:09 +0000 (15:05 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 7 Mar 2011 04:05:09 +0000 (15:05 +1100)
commit07620d6f7d06dd9d6bb8ae3026c8be7a091f6e4e
tree17bdd6e91944fd1f08b2bcd416c78772699cec20
parent5ecf7341e21506ff1ba75946736e537a1ab97e1e
CTDB_FATAL() try to drop all ip addresses when shutting down through ctdb_fatal()

If we shutdown through a ctdb_fatal(), unless there is an external mechanism to trap this and restart ctdb, we will get a duplicate address problem since addresses held on the node remain which collides with the addresses when failed over to other nodes.

During ctdb_fatal(), spawn a child process to try to drop all held public addresses.
common/ctdb_util.c
include/ctdb_private.h
server/ctdb_daemon.c
server/ctdb_recover.c