Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit f0d5e0a

Browse files
Introduce MAX_SUPPORTED_PRIORITY
Part of rabbitmq/rabbitmq-server#1590. [#157380396]
1 parent 00d50f0 commit f0d5e0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/rabbit.hrl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@
268268

269269
-define(CHANNEL_OPERATION_TIMEOUT, rabbit_misc:get_channel_operation_timeout()).
270270

271+
%% Max supported number of priorities for a priority queue.
272+
-define(MAX_SUPPORTED_PRIORITY, 255).
273+
271274
%% Trying to send a term across a cluster larger than 2^31 bytes will
272275
%% cause the VM to exit with "Absurdly large distribution output data
273276
%% buffer". So we limit the max message size to 2^31 - 10^6 bytes (1MB

0 commit comments

Comments
 (0)