ctdb-daemon: Don't allow attach from recovery if recovery is not active
commitb1b41b88a5ee6d5f06f9c1f722f5288f1af61203
authorMartin Schwenke <martin@meltin.net>
Tue, 25 Feb 2020 06:32:56 +0000 (25 17:32 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 30 Mar 2020 08:06:13 +0000 (30 08:06 +0000)
treeb72b6aab8f440d07a15fdfcab49a2dab4c3ce097
parent60dc3c3282d0d677ed1d441add0b4003749835dd
ctdb-daemon: Don't allow attach from recovery if recovery is not active

Neither the recovery daemon nor the recovery helper should attach
databases outside of the recovery process.

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

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 147afe77de372ddb9c180228d6fe1b04cca4610f)
ctdb/server/ctdb_ltdb_server.c