mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
recoverd: Disable takeover runs on other nodes for 5 minutes
60 seconds might not be long enough to kill all connections and release IPs. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 71080676bb4acbd0d9b595a30cf7fe6dddbf426f)
This commit is contained in:
parent
07d3a1b234
commit
430ae84877
@ -1699,10 +1699,10 @@ static bool do_takeover_run(struct ctdb_recoverd *rec,
|
||||
|
||||
nodes = list_of_connected_nodes(rec->ctdb, nodemap, rec, false);
|
||||
|
||||
/* Disable for 60 seconds. This can be a tunable later if
|
||||
/* Disable for 5 minutes. This can be a tunable later if
|
||||
* necessary.
|
||||
*/
|
||||
dtr.data = 60;
|
||||
dtr.data = 300;
|
||||
for (i = 0; i < talloc_array_length(nodes); i++) {
|
||||
if (ctdb_client_send_message(rec->ctdb, nodes[i],
|
||||
CTDB_SRVID_DISABLE_TAKEOVER_RUNS,
|
||||
|
Loading…
Reference in New Issue
Block a user