diff options
author | Michael Klishin <klishinm@vmware.com> | 2022-10-29 00:28:23 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 00:28:23 +0400 |
commit | f59f81f21ebe516c918f4b3aadb7a781a780a83a (patch) | |
tree | 8263e023bcff7791d9e754075f3a7cb77b25c2dc | |
parent | 13338e7fdc0a4957362c00610655ef8d6b144f5e (diff) | |
parent | 12449133063cfa971af0bb756196ae6a73576549 (diff) | |
download | rabbitmq-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.erl | 2 |
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 |