Skip to content

Commit 17e86c7

Browse files
Merge pull request #3398 from rabbitmq/rabbitmq-server-3390
Revisit two rabbitmq.conf validators (cherry picked from commit 13ac078)
1 parent b1a0f11 commit 17e86c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

deps/rabbit/priv/schema/rabbit.schema

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ end}.
619619

620620

621621
{mapping, "max_message_size", "rabbit.max_message_size",
622-
[{datatype, integer}, {validators, ["less_then_512MB"]}]}.
622+
[{datatype, integer}, {validators, ["max_message_size"]}]}.
623623

624624
%% Customising Socket Options.
625625
%%
@@ -895,7 +895,7 @@ end}.
895895
%% {mirroring_sync_batch_size, 4096},
896896

897897
{mapping, "mirroring_sync_batch_size", "rabbit.mirroring_sync_batch_size",
898-
[{datatype, bytesize}, {validators, ["size_less_than_2G"]}]}.
898+
[{datatype, bytesize}, {validators, ["mirroring_sync_batch_size"]}]}.
899899

900900
%% Peer discovery backend used by cluster formation.
901901
%%
@@ -1743,14 +1743,14 @@ end}.
17431743
% Validators
17441744
% ===============================
17451745

1746-
{validator, "size_less_than_2G", "Byte size should be less than 2G and greater than 0",
1746+
{validator, "mirroring_sync_batch_size", "Batch size should be greater than 0 and less than 1M",
17471747
fun(Size) when is_integer(Size) ->
1748-
Size > 0 andalso Size < 2147483648
1748+
Size > 0 andalso Size =< 1000000
17491749
end}.
17501750

1751-
{validator, "less_then_512MB", "Max message size should be less than 512MB and gre than 0",
1751+
{validator, "max_message_size", "Max message size should be between 0 and 512MB",
17521752
fun(Size) when is_integer(Size) ->
1753-
Size > 0 andalso Size < 536870912
1753+
Size > 0 andalso Size =< 536870912
17541754
end}.
17551755

17561756
{validator, "less_than_1", "Float is not between 0 and 1",

0 commit comments

Comments
 (0)