Skip to content

Commit feeeb7c

Browse files
Merge pull request #14814 from rabbitmq/md/config-stream-dir
Allow configuring osiris data_dir in Cuttlefish config
2 parents 3718673 + 86bf6be commit feeeb7c

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

deps/rabbit/priv/schema/rabbit.schema

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,6 +2799,19 @@ fun(Conf) ->
27992799
end
28002800
end}.
28012801

2802+
{mapping, "stream.data_dir", "osiris.data_dir", [
2803+
{datatype, string}
2804+
]}.
2805+
2806+
{translation, "osiris.data_dir",
2807+
fun(Conf) ->
2808+
case cuttlefish:conf_get("stream.data_dir", Conf, undefined) of
2809+
undefined -> cuttlefish:unset();
2810+
Val -> Val
2811+
end
2812+
end
2813+
}.
2814+
28022815
{mapping, "stream.read_ahead", "rabbit.stream_read_ahead",
28032816
[{datatype, [{enum, [true, false]}, integer, string]}]}.
28042817

deps/rabbit/test/config_schema_SUITE_data/rabbit.snippets

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,16 @@ credential_validator.regexp = ^abc\\d+",
12931293
[{rabbit, [
12941294
{stream_read_ahead, "8KiB"}
12951295
]}],
1296-
[]}
1296+
[]},
1297+
1298+
%%
1299+
%% Stream data dir
1300+
%%
12971301

1302+
{stream_data_dir,
1303+
"stream.data_dir = /data/rabbitmq/stream",
1304+
[{osiris, [
1305+
{data_dir, "/data/rabbitmq/stream"}
1306+
]}],
1307+
[]}
12981308
].

0 commit comments

Comments
 (0)