Skip to content

Commit

Permalink
[pg] Fix typo potentially leading to crash
Browse files Browse the repository at this point in the history
Typo introduced in erlang#7569 may may cause pg to crash when 'DOWN'
monitor message is in the queue while explicit leave is processed earlier.

Closes erlang#7807
  • Loading branch information
max-au committed Oct 31, 2023
1 parent d8c25c9 commit a85980d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kernel/src/pg.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a85980d

Please sign in to comment.