diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2020-05-29 20:58:50 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2020-05-29 21:01:30 +0300 |
| commit | e4464aabbf5902f804145fbc3dcc89124672eab9 (patch) | |
| tree | 1323e2c4febcee0e7a22de4a58b094ddfee95fb9 /priv | |
| parent | efed9b0a6c13847778689851b5c2a079187ba9a1 (diff) | |
| download | rabbitmq-server-git-e4464aabbf5902f804145fbc3dcc89124672eab9.tar.gz | |
Introduce raft.data_dir to new style configuration schema
As an experimental feature for now. To be sure that this value
has the desired effect we may have to tweak the way Ra dependency
is started.
Some ealy tests suggest this works as expected already.
Per discussion with @kjnilsson.
Closes #2354.
Diffstat (limited to 'priv')
| -rw-r--r-- | priv/schema/rabbit.schema | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema index 7fed1372cf..9552fb0cf3 100644 --- a/priv/schema/rabbit.schema +++ b/priv/schema/rabbit.schema @@ -1666,6 +1666,18 @@ end}. end }. +{mapping, "raft.data_dir", "ra.data_dir", [ + {datatype, string} +]}. + +{translation, "ra.data_dir", + fun(Conf) -> + case cuttlefish:conf_get("raft.data_dir", Conf, undefined) of + undefined -> cuttlefish:unset(); + Val -> Val + end + end +}. % =============================== % Validators |
