ctdb-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)
committerMartin Schwenke <martins@samba.org>
Wed, 29 Jul 2015 08:33:29 +0000 (10:33 +0200)
commit952a50485f68b3cffdf57da84aa9bb9fde630b7e
tree1c9962f822d19529341ad4374fca32c191cbddb4
parent8eb04d09b119e234c88150e1dc35fc5057f9c926
ctdb-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>
ctdb/server/ctdb_takeover.c