ctdb-daemon: When releasing an IP, update PNN in callback
commit88c1b5caeb547a1a3ebe94614fa827dc473cb64c
authorMartin Schwenke <martin@meltin.net>
Fri, 19 Aug 2016 06:38:50 +0000 (19 16:38 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Sep 2016 10:27:28 +0000 (13 12:27 +0200)
tree52462f3c11d0ccf2a962ca46a251419879f7ba4b
parentd17bc0c596c2ef772f9eefbfc181556aa4e0c542
ctdb-daemon: When releasing an IP, update PNN in callback

When an error occurs so an IP address is not released then the PNN in
the VNN is currently incorrectly updated.

Instead, update the PNN in the callback when the release is
successful.  Also, explicitly update the PNN on redundant releases.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12158

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Sun Aug 21 22:45:33 CEST 2016 on sn-devel-144

(cherry picked from commit 6dc75c7d24325d2070eb7feab5399dbfda50da96)
ctdb/server/ctdb_takeover.c