summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <klishinm@vmware.com>2022-10-29 00:28:23 +0400
committerGitHub <noreply@github.com>2022-10-29 00:28:23 +0400
commitf59f81f21ebe516c918f4b3aadb7a781a780a83a (patch)
tree8263e023bcff7791d9e754075f3a7cb77b25c2dc
parent13338e7fdc0a4957362c00610655ef8d6b144f5e (diff)
parent12449133063cfa971af0bb756196ae6a73576549 (diff)
downloadrabbitmq-server-git-f59f81f21ebe516c918f4b3aadb7a781a780a83a.tar.gz
Merge pull request #6283 from rabbitmq/mergify/bp/v3.11.x/pr-6278
Use erpc optimisation for local rpcs (backport #6278)
-rw-r--r--deps/rabbit/src/rabbit_quorum_queue.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/rabbit/src/rabbit_quorum_queue.erl b/deps/rabbit/src/rabbit_quorum_queue.erl
index bd4c2e877d..823e102084 100644
--- a/deps/rabbit/src/rabbit_quorum_queue.erl
+++ b/deps/rabbit/src/rabbit_quorum_queue.erl
@@ -1717,7 +1717,7 @@ erpc_call(Node, M, F, A, Timeout)
when is_integer(Timeout) andalso Node == node() ->
%% Only timeout 'infinity' optimises the local call in OTP 23-25 avoiding a new process being spawned:
%% https://github.com/erlang/otp/blob/47f121af8ee55a0dbe2a8c9ab85031ba052bad6b/lib/kernel/src/erpc.erl#L121
- try erpc:call(Node, M, F, A, Timeout) of
+ try erpc:call(Node, M, F, A, infinity) of
Result ->
Result
catch