From 3b7cdde96473e08426427d0e6ab858349a973f8c Mon Sep 17 00:00:00 2001 From: Michal Kuratczyk Date: Tue, 10 Sep 2024 11:09:31 +0200 Subject: [PATCH] Remove redundant copy of adjust_for_message_handling_proc/0 --- deps/rabbit/src/rabbit_channel.erl | 13 ------------- deps/rabbit/src/rabbit_process_flag.erl | 3 +-- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/deps/rabbit/src/rabbit_channel.erl b/deps/rabbit/src/rabbit_channel.erl index 2fe56353f03d..18f0fc4c2e77 100644 --- a/deps/rabbit/src/rabbit_channel.erl +++ b/deps/rabbit/src/rabbit_channel.erl @@ -2786,16 +2786,3 @@ maybe_decrease_global_publishers(#ch{publishing_mode = true}) -> is_global_qos_permitted() -> rabbit_deprecated_features:is_permitted(global_qos). - -adjust_vheap() -> - case code_version:get_otp_version() of - OtpMaj when OtpMaj >= 27 -> - %% 46422 is the default min_bin_vheap_size and for OTP 27 and above - %% we want to substantially increase it for processes that may buffer - %% messages. 32x has proven workable in testing whilst not being - %% rediculously large - process_flag(min_bin_vheap_size, 46422 * 32); - _ -> - ok - end. - diff --git a/deps/rabbit/src/rabbit_process_flag.erl b/deps/rabbit/src/rabbit_process_flag.erl index 32c8f1562579..fc74c25f554e 100644 --- a/deps/rabbit/src/rabbit_process_flag.erl +++ b/deps/rabbit/src/rabbit_process_flag.erl @@ -11,7 +11,6 @@ -export([adjust_for_message_handling_proc/0 ]). -%% @doc Enqueues a message. %% Adjust process flags for processes that handle RabbitMQ messages. %% For example any process that uses the `rabbit_queue_type' module %% may benefit from this tuning. @@ -24,7 +23,7 @@ adjust_for_message_handling_proc() -> %% 46422 is the default min_bin_vheap_size and for OTP 27 and above %% we want to substantially increase it for processes that may buffer %% messages. 32x has proven workable in testing whilst not being - %% rediculously large + %% ridiculously large process_flag(min_bin_vheap_size, 46422 * 32), ok; _ ->