daemon: Check if updates are in flight when releasing all IPs
authorMartin Schwenke <martin@meltin.net>
Fri, 24 Jul 2015 05:32:42 +0000 (15:32 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 31 Jul 2015 03:35:01 +0000 (13:35 +1000)
commitb0ac45fcb7097d9db965a7c3858de872e16387b6
tree92a0a34a987b9251a39d0b8a01f9dd8df03f349d
parent714b2189a91f8ced21c2dc1dd8e792a90e769fa0
daemon: Check if updates are in flight when releasing all IPs

Some code involved in releasing IPs is not re-entrant.  Memory
corruption can occur if, for example, overlapping attempts are made to
ban a node.  We haven't been able to recreate the corruption but this
should protect against it.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit 952a50485f68b3cffdf57da84aa9bb9fde630b7e)
server/ctdb_takeover.c