ctdb-daemon: Don't delete connection information for released IP
authorMartin Schwenke <martin@meltin.net>
Thu, 21 May 2015 14:13:48 +0000 (00:13 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 4 Dec 2015 08:17:17 +0000 (09:17 +0100)
commit5dcc1d7a69b0123fb8490a13a8852e7044e1ad88
tree122350162631653363709f9202a1b178708bb9a4
parent4261d6e70ad2f03d80ae263a04216e0728139520
ctdb-daemon: Don't delete connection information for released IP

As per the comment:

  If the IP address is hosted on this node then remove the connection.

  Otherwise this function has been called because the server IP
  address has been released to another node and the client has exited.
  This means that we should not delete the connection information.
  The takeover node processes connections too.

This doesn't matter at the moment, since the empty connection list for
an IP address that has been released will never be pushed to another
node.  However, it matters if the connection information is stored in
a real replicated database.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_takeover.c