recoverd: Interface reference count changes should not cause takeover runs
authorMartin Schwenke <martin@meltin.net>
Wed, 20 Feb 2013 23:43:35 +0000 (10:43 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 2 May 2013 07:11:43 +0000 (17:11 +1000)
commit58772d600b54d703273b1c077d46b19381f28f4f
tree274f1ca4d81e4b342ab9605ac0cbadb2cfd59779
parent217d2ad7b8fc7b251bcada0cd68e83ac3f1b3341
recoverd: Interface reference count changes should not cause takeover runs

At the moment a naive compare of the all the interface data is done.
So, if any IPs move then the reference counts for the the relevant
interfaces change, interfaces appear to have changed and another
takeover run is initiated by each node that took/released IPs.

This change stops the spurious takeover runs by changing the interface
comparison to ignore the reference counts.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 0b7257642f62ebd83c05b6e2922f0dc2737f175c)
ctdb/server/ctdb_recoverd.c