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)
committerMichael Adam <obnox@samba.org>
Wed, 1 Jun 2016 15:36:12 +0000 (17:36 +0200)
commitf8141e91a693912ea1107a49320e83702a80757a
treef13bab2489f64b6c3be5c0667216f47c447a487b
parent4b5eaf9a4ee21743f2a0e926fc8720a7ef0d8879
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
ctdb/server/ctdb_recoverd.c