ctdb-recoverd: Freeze databases whenever the node is INACTIVE
authorAmitay Isaacs <amitay@gmail.com>
Wed, 1 Jun 2016 02:10:46 +0000 (12:10 +1000)
committerKarolin Seeger <kseeger@samba.org>
Thu, 9 Jun 2016 11:07:25 +0000 (13:07 +0200)
commit049bb18d28bea7001b761c7ed7e3fa3b291a087c
treef80e8d7f4b3786dad28299f26debcea4fa07bca5
parente9ea633d3c673432dc6ce21e1fddde59f88f3720
ctdb-recoverd: Freeze databases whenever the node is INACTIVE

If the node becomes stopped or banned after recovery is marked
active, then it will never freeze the databases, and hence the
node will keep banning itself indefinitely, until ctdbd is restarted.

This is a regression from 4.3, introduced with

b4357a79d916b1f8ade8fa78563fbef0ce670aa9

and

d8f3b490bbb691c9916eed0df5b980c1aef23c85

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

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Wed Jun  1 17:36:12 CEST 2016 on sn-devel-144

(cherry picked from commit f8141e91a693912ea1107a49320e83702a80757a)
ctdb/server/ctdb_recoverd.c