mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
tests/takeover: Support testing of NoIPTakeoverOnDisabled
Via $CTDB_SET_NoIPTakeoverOnDisabled. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d357d52dbd533444a4af6151d04ba119a1533068)
This commit is contained in:
parent
6c1b6c980e
commit
34bfecf99f
@ -367,6 +367,11 @@ void ctdb_test_init(const char nodestates[],
|
||||
}
|
||||
}
|
||||
|
||||
(*ctdb)->tunable.no_ip_takeover_on_disabled = 0;
|
||||
if (getenv("CTDB_SET_NoIPTakeoverOnDisabled")) {
|
||||
(*ctdb)->tunable.no_ip_takeover_on_disabled = (uint32_t) strtoul(getenv("CTDB_SET_NoIPTakeoverOnDisabled"), NULL, 0);
|
||||
}
|
||||
|
||||
*nodemap = talloc_array(*ctdb, struct ctdb_node_map, numnodes);
|
||||
(*nodemap)->num = numnodes;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user