From: Martin Schwenke Date: Fri, 11 May 2018 12:42:42 +0000 (+1000) Subject: ctdb-tools: Add database config options to config tool X-Git-Tag: ldb-1.4.0~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65d9d1e743ff1598b66738b64dc18bcc27d9c981;p=thirdparty%2Fsamba.git ctdb-tools: Add database config options to config tool Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/common/conf_tool.c b/ctdb/common/conf_tool.c index 44994194d72..5a8800b049e 100644 --- a/ctdb/common/conf_tool.c +++ b/ctdb/common/conf_tool.c @@ -30,6 +30,7 @@ #include "common/logging_conf.h" #include "cluster/cluster_conf.h" +#include "database/database_conf.h" #include "event/event_conf.h" #include "common/conf_tool.h" @@ -239,6 +240,7 @@ int conf_tool_run(struct conf_tool_context *ctx, int *result) /* Call functions to initialize config sections/variables */ logging_conf_init(ctx->conf, NULL); cluster_conf_init(ctx->conf); + database_conf_init(ctx->conf); event_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 f24b2326b0f..3627122baeb 100755 --- a/ctdb/tests/cunit/config_test_001.sh +++ b/ctdb/tests/cunit/config_test_001.sh @@ -17,6 +17,15 @@ test_cleanup remove_files # Get the default values that are dependent on install prefix logging_location=$(ctdb-config get "logging" "location") +database_volatile_dbdir=$(ctdb-config get \ + "database" \ + "volatile database directory") +database_persistent_dbdir=$(ctdb-config get \ + "database" \ + "persistent database directory") +database_state_dbdir=$(ctdb-config get \ + "database" \ + "state database directory") ok < "$conffile" < "$conffile" <