Skip to content

Commit c055a91

Browse files
Merge pull request #3400 from rabbitmq/mergify/bp/v3.9.x/pr-3398
Revisit two rabbitmq.conf validators (backport #3398)
2 parents 379f29f + 6cbc3bd commit c055a91

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
@@ -743,7 +743,7 @@ end}.
743743

744744

745745
{mapping, "max_message_size", "rabbit.max_message_size",
746-
[{datatype, integer}, {validators, ["less_then_512MB"]}]}.
746+
[{datatype, integer}, {validators, ["max_message_size"]}]}.
747747

748748
%% Customising Socket Options.
749749
%%
@@ -1019,7 +1019,7 @@ end}.
10191019
%% {mirroring_sync_batch_size, 4096},
10201020

10211021
{mapping, "mirroring_sync_batch_size", "rabbit.mirroring_sync_batch_size",
1022-
[{datatype, bytesize}, {validators, ["size_less_than_2G"]}]}.
1022+
[{datatype, bytesize}, {validators, ["mirroring_sync_batch_size"]}]}.
10231023

10241024
%% Peer discovery backend used by cluster formation.
10251025
%%
@@ -2050,14 +2050,14 @@ end}.
20502050
% Validators
20512051
% ===============================
20522052

2053-
{validator, "size_less_than_2G", "Byte size should be less than 2G and greater than 0",
2053+
{validator, "mirroring_sync_batch_size", "Batch size should be greater than 0 and less than 1M",
20542054
fun(Size) when is_integer(Size) ->
2055-
Size > 0 andalso Size < 2147483648
2055+
Size > 0 andalso Size =< 1000000
20562056
end}.
20572057

2058-
{validator, "less_then_512MB", "Max message size should be less than 512MB and gre than 0",
2058+
{validator, "max_message_size", "Max message size should be between 0 and 512MB",
20592059
fun(Size) when is_integer(Size) ->
2060-
Size > 0 andalso Size < 536870912
2060+
Size > 0 andalso Size =< 536870912
20612061
end}.
20622062

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

0 commit comments

Comments
 (0)