diff options
author | Martin Schwenke <martin@meltin.net> | 2012-12-20 16:24:58 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2013-01-08 10:16:11 +1100 |
commit | 34bfecf99f56572c6af1421b7a31a07e65183e2c (patch) | |
tree | 2b4db4bdd51773badc3daebdf7cfcb2fc22b19e0 /ctdb/tests/src | |
parent | 6c1b6c980ed796b45ba967f7562e31cf01e719e4 (diff) | |
download | samba-34bfecf99f56572c6af1421b7a31a07e65183e2c.tar.gz |
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)
Diffstat (limited to 'ctdb/tests/src')
-rw-r--r-- | ctdb/tests/src/ctdb_takeover_tests.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/tests/src/ctdb_takeover_tests.c b/ctdb/tests/src/ctdb_takeover_tests.c index e93e709f651..1e710a79714 100644 --- a/ctdb/tests/src/ctdb_takeover_tests.c +++ b/ctdb/tests/src/ctdb_takeover_tests.c @@ -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; |