]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-recovery: Use CTDB_CTRL_FLAG_ATTACH_RECOVERY to attach during recovery
authorMartin Schwenke <martin@meltin.net>
Fri, 21 Feb 2020 00:13:05 +0000 (11:13 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 30 Mar 2020 10:08:25 +0000 (10:08 +0000)
commit835f091f80af8d4264b5b9d008f809c845f48bd6
treecd5b494769cb43efafad595068d0bc44bbcade5e
parentc42aec419ff97a842fe580c2e9c91eeb333b1828
ctdb-recovery: Use CTDB_CTRL_FLAG_ATTACH_RECOVERY to attach during recovery

ctdb_ctrl_createdb() is only called by the recovery daemon, so this is
a safe, temporary change.  This is temporary because
ctdb_ctrl_createdb(), create_missing_remote_databases() and
create_missing_local_databases() will all go away soon.

Note that this doesn't cause a change in behaviour.  The main daemon
will still only defer attaches from non-recoverd processes during
recovery.

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 98e3d0db2bc5f33217e26fab1dfb4bb91eae534f)
ctdb/server/ctdb_client.c