From a85980d78bb2db5df95ae0a1c2683679cad7bbdb Mon Sep 17 00:00:00 2001 From: Maxim Fedorov Date: Mon, 30 Oct 2023 19:06:15 -0700 Subject: [PATCH] [pg] Fix typo potentially leading to crash Typo introduced in #7569 may may cause pg to crash when 'DOWN' monitor message is in the queue while explicit leave is processed earlier. Closes #7807 --- lib/kernel/src/pg.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kernel/src/pg.erl b/lib/kernel/src/pg.erl index 2e86dbf4dd6f..5df65eb0ebfa 100644 --- a/lib/kernel/src/pg.erl +++ b/lib/kernel/src/pg.erl @@ -424,7 +424,7 @@ handle_info({'DOWN', MRef, process, Pid, _Info}, #state{scope = Scope, remote = leave_remote_update_ets(Scope, ScopeMon, MG, Pids, [Group]) end, RemoteMap), {noreply, State#state{remote = NewRemote}}; error -> - {noreply, MRef, State} + {noreply, State} end; %% handle scope monitor exiting