Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
rabbit_common
0001-revert-d9d68e931cb7bcc2f00c12846fa510526b3...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-revert-d9d68e931cb7bcc2f00c12846fa510526b38f9d9.patch of Package rabbit_common
From b8d5d15cc19668947d00a243edf71be9d63eda84 Mon Sep 17 00:00:00 2001 From: Michal Kuratczyk <mkuratczyk@vmware.com> Date: Mon, 12 Jun 2023 12:55:09 +0200 Subject: [PATCH] revert d9d68e931cb7bcc2f00c12846fa510526b38f9d9 A recent change in OTP made the unit_SUITE fail with a case clause. https://github.com/erlang/otp/commit/cdd7200cbe47e708b62b545ccf51f88e954d093d Reverting this old commit seems to fix the problem for OTP master without breaking OTP25/26. Co-authored-by: @lhoguin --- deps/rabbit_common/src/gen_server2.erl | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/gen_server2.erl b/src/gen_server2.erl index 5b3b2b3bb4..442476bd21 100644 --- a/src/gen_server2.erl +++ b/src/gen_server2.erl @@ -805,18 +805,7 @@ in(Input, Priority, GS2State = #gs2_state { queue = Queue }) -> process_msg({system, From, Req}, GS2State = #gs2_state { parent = Parent, debug = Debug }) -> - case Req of - %% This clause will match only in R16B03. - %% Since 17.0 replace_state is not a system message. - {replace_state, StateFun} -> - GS2State1 = StateFun(GS2State), - _ = gen:reply(From, GS2State1), - system_continue(Parent, Debug, GS2State1); - _ -> - %% gen_server puts Hib on the end as the 7th arg, but that version - %% of the fun seems not to be documented so leaving out for now. - sys:handle_system_msg(Req, From, Parent, ?MODULE, Debug, GS2State) - end; + sys:handle_system_msg(Req, From, Parent, ?MODULE, Debug, GS2State); process_msg({'$with_state', From, Fun}, GS2State = #gs2_state{state = State}) -> reply(From, catch Fun(State)), -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor