From: Martin Schwenke Date: Tue, 21 Aug 2018 01:44:03 +0000 (+1000) Subject: ctdb-config: Integrate failover options into conf-tool X-Git-Tag: tdb-1.3.17~2020 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d003a41a9cb9ea97a7da9dbb5bd3138f82da6cf1;p=thirdparty%2Fsamba.git ctdb-config: Integrate failover options into conf-tool Update and add tests accordingly. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/common/conf_tool.c b/ctdb/common/conf_tool.c index 329b20476c1..e6020c504e6 100644 --- a/ctdb/common/conf_tool.c +++ b/ctdb/common/conf_tool.c @@ -32,6 +32,7 @@ #include "cluster/cluster_conf.h" #include "database/database_conf.h" #include "event/event_conf.h" +#include "failover/failover_conf.h" #include "server/legacy_conf.h" #include "common/conf_tool.h" @@ -243,6 +244,7 @@ int conf_tool_run(struct conf_tool_context *ctx, int *result) cluster_conf_init(ctx->conf); database_conf_init(ctx->conf); event_conf_init(ctx->conf); + failover_conf_init(ctx->conf); legacy_conf_init(ctx->conf); if (! conf_valid(ctx->conf)) { diff --git a/ctdb/tests/cunit/config_test_001.sh b/ctdb/tests/cunit/config_test_001.sh index 74686cac9b9..c0a6e89aeb2 100755 --- a/ctdb/tests/cunit/config_test_001.sh +++ b/ctdb/tests/cunit/config_test_001.sh @@ -43,6 +43,8 @@ ok < "$conffile" <