mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb-daemon: Respect CTDB_CTRL_FLAG_ATTACH_RECOVERY when attaching databases
This is currently only set by the recovery daemon when it attaches missing databases, so there is no obvious behaviour change. However, attaching missing databases can now be moved to the recovery helper as long as it sets this flag. 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>
This commit is contained in:
parent
98e3d0db2b
commit
7e5a8a4884
@ -1135,7 +1135,7 @@ int32_t ctdb_control_db_attach(struct ctdb_context *ctdb,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (client->pid != ctdb->recoverd_pid &&
|
||||
if (!(c->flags & CTDB_CTRL_FLAG_ATTACH_RECOVERY) &&
|
||||
(ctdb->recovery_mode == CTDB_RECOVERY_ACTIVE ||
|
||||
ctdb->runstate < CTDB_RUNSTATE_STARTUP)) {
|
||||
struct ctdb_deferred_attach_context *da_ctx = talloc(client, struct ctdb_deferred_attach_context);
|
||||
|
Loading…
Reference in New Issue
Block a user